Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2023-03-27 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?