I know the comparison is true but the shift doesn't seem happy. If I type "print shift @ARGV", I can see the -s. However it doesn't want to be assigned to a variable.#!/usr/bin/perl if ($ARGV[0] eq '-s') { my $argument = shift @ARGV; } print "$argument";
In reply to shift @ARGV not working by rayh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |