Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How can I extract part of a string after a specific character

by caedes (Pilgrim)
on Jul 11, 2002 at 07:01 UTC ( [id://180963]=note: print w/replies, xml ) Need Help??


in reply to How can I extract part of a string after a specific character

Here is a crazy way to do it:
my $test = "TITLE=SPECIAL CASE 1"; my @temp; for(reverse split(//,$test)){ last if /=/; push @temp,($_); } print reverse @temp;

-caedes

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found