more useful options | |
PerlMonks |
Reply to replies and updateby Maze (Sexton) |
on Aug 09, 2006 at 22:48 UTC ( [id://566505]=note: print w/replies, xml ) | Need Help?? |
hm - right, i fix up the indentations
and so with various other edits, this is what i've come up with
which executes and produces the output: there are 0 arguments there are 0 cars there are 0 bunnies 0 args are not carswhen I execute it with any given argument and gives this output when I execute it with any arguments: Use of uninitialized value in numeric le (<=) at testargscan.pl line 18. Use of uninitialized value in array element at testargscan.pl line 19. Use of uninitialized value in numeric eq (==) at testargscan.pl line 19. Use of uninitialized value in numeric eq (==) at testargscan.pl line 19. Use of uninitialized value in array element at testargscan.pl line 21. Use of uninitialized value in string eq at testargscan.pl line 29. Use of uninitialized value in string eq at testargscan.pl line 29. Use of uninitialized value in string eq at testargscan.pl line 29. Use of uninitialized value in numeric le (<=) at testargscan.pl line 18. Use of uninitialized value in array element at testargscan.pl line 19. Use of uninitialized value in numeric eq (==) at testargscan.pl line 19. Use of uninitialized value in numeric eq (==) at testargscan.pl line 19. Use of uninitialized value in array element at testargscan.pl line 21. Use of uninitialized value in numeric le (<=) at testargscan.pl line 18. Use of uninitialized value in array element at testargscan.pl line 19. Use of uninitialized value in numeric eq (==) at testargscan.pl line 19. Use of uninitialized value in numeric eq (==) at testargscan.pl line 19. Use of uninitialized value in array element at testargscan.pl line 21. Use of uninitialized value in numeric le (<=) at testargscan.pl line 18. Use of uninitialized value in array element at testargscan.pl line 19. Use of uninitialized value in numeric eq (==) at testargscan.pl line 19. Use of uninitialized value in numeric eq (==) at testargscan.pl line 19. Use of uninitialized value in array element at testargscan.pl line 21. there are 0 arguments there are 1 cars there are 1 bunnies args are not carswhich isn't the bahaviour i'm looking for what I am looking for is a simple test of a subroutine, which I'm trying to use in a larger program for XML handling, cycles through the argument array looking for the values specified when I call it (in this case - cars and bunnies, just because I could) and returning what I ask for.
In Section
Seekers of Perl Wisdom
|
|