Re: Strange Behavior

2001-06-29 Thread Maxim Berlin
Hello James, Friday, June 29, 2001, James Kelty <[EMAIL PROTECTED]> wrote: JK> I was wondering if someone could help me with the following code bit. It JK> is acting strangely. JK> if($ARGV[0] =~ m/^-l$|^-list$/i) { JK> print "What ports? (Press return after each port and CRTL-D when done.

Re: Strange Behavior

2001-06-29 Thread Brett W. McCoy
On Fri, 29 Jun 2001, James Kelty wrote: > I am trying to take "-l" or "-list" as a command line argument, but it > bombs out with this error when run. Perl, by default, will treat a command-line option as a file, so you also need to make sure you shift it off the @ARGV array if you are going to