in reply to accessing a part of a string
Don't forget to add the OFFSET portion of substr.my $string = 'some/very/varied_length/string'; my $subs = substr( $string, 0, length($string) - 6 ); say $subs;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: accessing a part of a string
by Eliya (Vicar) on May 18, 2012 at 11:30 UTC |