Im sure it could be golfed, but *shrug* HTHsub get_inner { my $str = shift; my $inner = ( split(/\(/, $str) )[-1]; $inner =~ s/\).+$//; $inner; }
sub get_inner { my $str = shift; my $inner = ( split(/\)/, $str) )[0]; $inner =~ m/([^\(]+)$/; $1; }
In reply to Re: Peeling the Peelings
by l2kashe
in thread Peeling the Peelings
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |