Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: using split

by ikegami (Pope)
on Jun 05, 2007 at 13:19 UTC ( #619381=note: print w/replies, xml ) Need Help??


in reply to Re^3: using split
in thread using split

And the difference between "..." and /.../ is that "..." unescapes too much.

For example,
"\d" is the same as /d/.
If you want /\d/, the equivalent would be "\\d".

I always use /.../ or qr/.../ to avoid confusion.

Replies are listed 'Best First'.
Re^5: using split
by BrowserUk (Pope) on Jun 05, 2007 at 17:16 UTC

    Yes. I never use "...", preferring m[...] instead. Using '...' for a regex is simply shorthand for m'...' which gives the same, non-interpolating behaviour.

    A bad habit? Maybe...


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2021-03-05 17:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (113 votes). Check out past polls.

    Notices?