![]() |
|
We don't bite newbies here... much | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
Hi, am i missing something? I have this code:
$molfile=shift || die ('script takes one arg from CL'); And when i call it like ./service.pl file.txt I always get the die error message displayed. I have to explicitly say $molfile = $ARGV[0] || die.....; to get it to work. This is a bit strange as i have the same code in a different file that works... Any thoughts?
Thanks
In reply to shift doesnt shift by joec_
|
|