Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Getting information about regexp matches

by alfie (Pilgrim)
on Apr 23, 2001 at 12:47 UTC ( #74663=note: print w/replies, xml ) Need Help??

in reply to Getting information about regexp matches

I'm not quite sure if I get you right, but maybe you should take a look into perlman:perlvar and $& for the match, $` for the prematch and $' for the postmatch. If you use English you can even use $MATCH, $PREMATCH and $POSTMATCH.
use signature; signature(" So long\nAlfie");

Replies are listed 'Best First'.
Re: Re: Getting information about regexp matches
by snowcrash (Friar) on Apr 23, 2001 at 14:56 UTC
    don't use these when you don't have to: from man perlvar

    The use of this variable anywhere in a program
    imposes a considerable performance penalty on all
    regular expression matches. See the BUGS manpage.

    snowcrash //////

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-05-18 03:22 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (68 votes). Check out past polls.