Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Peeling the Peelings

by l2kashe (Deacon)
on Jul 01, 2003 at 19:32 UTC ( [id://270622]=note: print w/replies, xml ) Need Help??


in reply to Peeling the Peelings

Here is my contribution

sub get_inner { my $str = shift; my $inner = ( split(/\(/, $str) )[-1]; $inner =~ s/\).+$//; $inner; }
Im sure it could be golfed, but *shrug* HTH
Update: or the reverse would be
sub get_inner { my $str = shift; my $inner = ( split(/\)/, $str) )[0]; $inner =~ m/([^\(]+)$/; $1; }


MMMMM... Chocolaty Perl Goodness.....

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://270622]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-24 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found