in reply to Deleting from front of string
Substr with 4 arguments sets the substr in question to equal the value of the 4th argument. In this case delete it.my $str='Blah blah blah'; my $removed=substr($str,0,2,""); print "Removed=$removed and Str=$str\n";
Yves
--
You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Deleting from front of string
by Fletch (Bishop) on Oct 05, 2001 at 19:43 UTC |