# 1. sub parse_header { # Get the first argument passed to the function/method. my $header = shift(); .... }
# 2. sub parse_header { # Get the first argument passed to the function/method. my $header = $_[0]; .... }
In reply to Re: Help with argument to a subroutine
by krisahoch
in thread Help with argument to a subroutine
by unixhome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |