good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: How can I extract part of a string after a specific characterby greenFox (Vicar) |
on Jul 11, 2002 at 05:28 UTC ( [id://180949]=note: print w/replies, xml ) | Need Help?? |
I suspect split would be your best choice-
Though there are other ways-
Just as examples. Which method you choose will depend on what else is going on in your program and what the most general case of your expression is. If it is *always* TITLE="some string" I might use substr. If it was (for example) "some text in upper followed by an equals followed by some string ending in a numeric" *and* I had to ignore other lines that include "=" I might use an regular expression. --
In Section
Seekers of Perl Wisdom
|
|