Monks,
my $out = substr("some/very/varied_length/string",-6);is giving me "string" in $out.
But I want the other part "some/very/varied_length/" Here I am interested in a general code which works with the changes in length of "varied_length" of the above string.
Thanks.
In reply to accessing a part of a string by uday_sagar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |