Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Patching a Package (Scalar::Util)

by ikegami (Patriarch)
on Apr 19, 2006 at 17:37 UTC ( [id://544418]=note: print w/replies, xml ) Need Help??


in reply to Patching a Package (Scalar::Util)

Quote version:
An alternate way to create a new version object is through the exported qv() sub. This is not strictly like other q? operators (like qq, qw), in that the only delimiters supported are parentheses (or spaces).

It's really just a function called qv, not a quote operator. Change
qv/0.0.1/
means
qv($_ =~ /0.0.1/)
so change it to one of the following:
qv('0.0.1')
qv"0.0.1" (the space is optional for double quotes)
qv '0.0.1' (the space is necessary for single quotes)
qv q/0.0.1/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-18 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found