Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Re: use of constants in regex substitutions?

by edan (Curate)
on Sep 23, 2003 at 14:32 UTC ( [id://293508]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: use of constants in regex substitutions?
in thread use of constants in regex substitutions?

Well, I believe the => operator forces a bareword to its left to be interpreted as a string. But &sub isn't a bareword it's a subroutine call, so it works like you want it to. At least, this is my understanding. Hopefully someone will correct me if I'm wrong.

--
3dan

  • Comment on Re: Re: Re: Re: use of constants in regex substitutions?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found