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

Oh Nuts! Re: Regex and @+

by claree0 (Hermit)
on Aug 31, 2001 at 15:47 UTC ( #109356=note: print w/replies, xml ) Need Help??


in reply to Regex and @+

Typos-R-us! Once I get the code correct, I get the expected results!

Replies are listed 'Best First'.
Re: Oh Nuts! Re: Regex and @+
by Hofmator (Curate) on Aug 31, 2001 at 16:06 UTC

    small remark ... you could have had an easier life by writing

    print "\$1 is $1, \@- contains ", join(', ', @-), "\n"; print "\$2 is $2, \@+ contains ", join(', ', @+), "\n";
    There is still the chance of typos, but it's decreased and easier detected.

    -- Hofmator

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2022-09-27 18:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (123 votes). Check out past polls.

    Notices?