in reply to Help with argument to a subroutine

unixhome,

There is more than one way to do it.
# 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]; .... }
Kristofer A. Hoch
Senior Software Developer (P+++$)
Aptia Systems, Inc. (http://www.aptia.com)