Jan 30, 2007 #1 CJason Programmer Joined Oct 13, 2004 Messages 223 Location US Is it possible to make ARGV recognize "," as a valid separator...as well as " " (<blank>). Thanks!
Jan 30, 2007 #2 ishnid Programmer Joined Aug 29, 2003 Messages 1,422 Location 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 Joined Dec 21, 2006 Messages 1,431 Location 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 Joined Oct 20, 2006 Messages 919 Location 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 Joined Dec 21, 2006 Messages 1,431 Location 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