Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Strange regex to test for newlines: /.*\z/

by shmem (Chancellor)
on May 21, 2007 at 14:26 UTC ( [id://616569]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -D512 -e '$_ = "f\n";/.*\z/'
    Compiling REx `.*\z'
    ...
                                failed...
    Match failed
    Freeing REx: `".*\\z"'
    
  2. or download this
    perl -D512 -e '$_ = "f\n";/.*\z/s'
    Compiling REx `.*\z'
    ...
    > <>              |  4:    END
    Match successful!
    Freeing REx: `".*\\z"'
    
  3. or download this
      Setting an EVAL scope, savestack=6
       2 <f
    > <>              |  3:    EOS
       2 <f
    > <>              |  4:    END
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-19 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found