On Tue, Apr 8, 2008 at 3:46 PM, mitr <[EMAIL PROTECTED]> wrote: > > 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. > > Could anyone please help me on this issue? snip
The correct way to do this is to quote the arguments that contain characters the shell cares about (space, |, &, [, $, etc): perl sample.pl 'this is one argument' two three -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/