Can anyone spot anything?You need to dereference your array references e.g
See. tye's References quick reference for info references and be sure to use strict to catch these sort of errors.my @ar = qw/ foo bar baz /; func(\@ar); sub func { my $ar = shift; ## note the dereference via -> print $ar->[0]; } __output__ foo
_________
broquaint
In reply to Re: whats wrong with my sub-routine ??
by broquaint
in thread whats wrong with my sub-routine ??
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |