Jan 30, 2007 #1 CJason Programmer Oct 13, 2004 223 US Is it possible to make ARGV recognize "," as a valid separator...as well as " " (<blank>). Thanks!
Jan 30, 2007 #2 ishnid Programmer Aug 29, 2003 1,422 IE Do you mean that when you type "perl test.pl foo,bar", @ARGV contains two elements: "foo" and "bar"? No. You'd have to split the elements of @ARGV on a comma yourself if you wanted that behaviour. Upvote 0 Downvote
Do you mean that when you type "perl test.pl foo,bar", @ARGV contains two elements: "foo" and "bar"? No. You'd have to split the elements of @ARGV on a comma yourself if you wanted that behaviour.
Jan 30, 2007 #3 travs69 MIS Dec 21, 2006 1,431 US If you want to have some fancy options you might look into Getopt module. It might be able to help you out. Upvote 0 Downvote
If you want to have some fancy options you might look into Getopt module. It might be able to help you out.
Jan 30, 2007 #4 MillerH Programmer Oct 20, 2006 919 US travs69 said: If you want to have some fancy options you might look into Getopt module. It might be able to help you out. Click to expand... That would be this module: http://search.cpan.org/search?query=Getopt::Long Upvote 0 Downvote
travs69 said: If you want to have some fancy options you might look into Getopt module. It might be able to help you out. Click to expand... That would be this module: http://search.cpan.org/search?query=Getopt::Long
Jan 30, 2007 #5 travs69 MIS Dec 21, 2006 1,431 US Actually I meant http://search.cpan.org/~nwclark/perl-5.8.8/lib/Getopt/Std.pm as I have never used Getopt::Long but whatever as long as gets close Upvote 0 Downvote
Actually I meant http://search.cpan.org/~nwclark/perl-5.8.8/lib/Getopt/Std.pm as I have never used Getopt::Long but whatever as long as gets close