Note that there is no check for whether or not there are any )s in the string and skippng over if there are.for (@array) { my $extract = substr($_,rindex($_,')')+1 ); # everything after the l +ast paren is interesting $extract=~ s/\s+//gs; # remove spaces print "$extract\n"; # or do something else }
Dingus
In reply to Re: string manipulation
by dingus
in thread string manipulation
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |