Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # A function that reverses any paramter put in
- sub modify_name {
- $_[0] = reverse $_[0];
- }
- my $name = 'Orange';
- modify_name($name); # call the function on the above declared variable, reversing it
- say $name; # prints: egnarO
Add Comment
Please, Sign In to add comment