in reply to Re: Comandline arguements when perl code is getting executed from command line
in thread Comandline arguements when perl code is getting executed from command line

Not a good idea when using the -n switch. Unless you mean a BEGIN { } block and maybe Getopt::*?
  • Comment on Re^2: Comandline arguements when perl code is getting executed from command line

Replies are listed 'Best First'.
Re^3: Comandline arguements when perl code is getting executed from command line
by ikegami (Patriarch) on Jan 16, 2007 at 15:43 UTC
    He could use BEGIN { $type = shift(@ARGV); }, he could use -s or he could get rid of -n.
A reply falls below the community's threshold of quality. You may see it by logging in.