Re: take out 1 character from a variable

2001-09-06 Thread Brett W. McCoy
On Thu, 6 Sep 2001, eric wang wrote: > I am trying to take this optional parameter into my perl script. > I use a hypen (-) to indicate that it's a parameter. However, how do i get > rid of that hyphen? so for example: > myexe -hello -world -1 when entered into my script it becomes > > just ARGV[

take out 1 character from a variable

2001-09-06 Thread eric wang
Hi people, I am trying to take this optional parameter into my perl script. I use a hypen (-) to indicate that it's a parameter. However, how do i get rid of that hyphen? so for example: myexe -hello -world -1 when entered into my script it becomes just ARGV[0] = hello ARG[1]=world ARG[2]=1 ? h