Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Need explanation: what \$_ and ${} do

by chester (Hermit)
on Nov 11, 2005 at 15:36 UTC ( #507755=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Need explanation: what \$_ and ${} do
in thread Need explanation: what \$_ and ${} do

    s   Treat string as single line. That is, change "." to match any
        character whatsoever, even a newline, which normally it would not
        match.

There are no .'s in the regex.


Comment on Re^3: Need explanation: what \$_ and ${} do
Download Code
Re^4: Need explanation: what \$_ and ${} do
by polettix (Vicar) on Nov 11, 2005 at 15:47 UTC
    ... which makes me learn that [^>] does match a newline :)

    Thanks for bothering, chester!

    Flavio
    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Don't fool yourself.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (15)
As of 2014-12-18 21:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (65 votes), past polls