Subject: how to seperate the run time argument with | SEPARATE!
> Hi, > > I have a perl script, where I am passing more than 3 arguments, but I > want to seperate them with |(pipe)or any other special charcater > instead of blank space, cause the argument itself I have the space > like " sixty three". > For example c:\perl>perl sample.pl sixty three|fouty four| twenty two > in windows. > > now I am passing the argument like > > c:\perl>perl sample.pl two three four, when you do not have the space > in the argument itself then it is fine otherwise it is taking > everything as an argument. c:\perl>perl sample.pl "sixty three" "fouty four" " twenty two" As you can see it's passed to the script corectly: perl -MData::Dumper -e "print Dumper([EMAIL PROTECTED])" "sixty three" "fouty four" " twenty two" If you want to be able to use singlequotes, want parameter globing (handling of a*.txt) and a few other goodies in Windows similar to the way you'd do that in Unix you may try http://Jenda.Krynicky.cz/#G HTH, Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/