Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Oh Nuts! Re: Regex and @+

by claree0 (Hermit)
on Aug 31, 2001 at 15:47 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found