Can anybody tell me why?
Because you should have written
instead of $_ = shift ;my ( $userin2 ) = @_;
See http://learn.perl.org/books/beginning-perl/ Chapter 8: Subroutines
In reply to Re: Subroutine Question
by Anonymous Monk
in thread Subroutine Question
by Socrates440
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |