OK. Now I get it.
How about: my ($str1, $str2,$lb1,@comment) = @ARGV; That will accept a multi-word comment as the last arguement. You then have: if (scalar @comment < 1) { usage (); } R At 15:41 23/09/2002 +0530, Javeed SAR wrote: >Yes exactly,How to check it in script, i don't want the input to be >given in quotes (that is from command line). >Script has to accept it without quotes. >I want to make changes in script. > >my script is as follows: > >my ($str1, $str2,$lb1,$comment) = @ARGV; > > >-----Original Message----- >From: Robin Cragg >[<mailto:[EMAIL PROTECTED]>mailto:[EMAIL PROTECTED]] >Sent: Monday, September 23, 2002 3:34 PM >To: Javeed SAR; [EMAIL PROTECTED] >Subject: Re: inputs to my script. > >If you want multiple words to be treated as one argument, just enclose them >in quotes... > >R > >At 15:26 23/09/2002 +0530, Javeed SAR wrote: > >Hi all, > > > >I am giving 4 command line inputs to my script. > >I want to give the 4 input($com) which has spaces in it input, eg: Hello > how > >do you do > >How should i take the bold font as single input?? > >How should i check it in my script? > > > >if( scalar(@ARGV) != 4 ) { > > print "Enough Arguments are not given.\n"; > > print "Usage: program (Int View) (Label View) (Label Lock) (Checkin > >Comments)\n"; > > exit(0); > >} > > > > > >j -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]