We don't bite newbies here... much | |
PerlMonks |
RE: RE: Re: regexp to return rest of stringby kirbyk (Friar) |
on Jun 03, 2000 at 02:00 UTC ( [id://16144]=note: print w/replies, xml ) | Need Help?? |
I figured out this trick (or actually a variant) just by lots
of trial and error with regexs in my early perl days. I
prefer using parentheses rather than array subscripts, eg: ($relative_url) = ($string =~ /content(.*)/); A _very_ useful version of this trick is with DBI, ie:
$getStuff = $dbh->prepare("select id, price, info from mytable");
-- Kirby
In Section
Seekers of Perl Wisdom
|
|