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

Just so I understand

by joshclark (Novice)
on Sep 28, 2003 at 13:54 UTC ( #294743=note: print w/ replies, xml ) Need Help??


in reply to Re: use bytes without breaking perl 5.005 or 5.004?
in thread use bytes without breaking perl 5.005 or 5.004?

Hey, interesting! So, the idea would be to do it like this?
BEGIN { $INC{ 'bytes.pm' }++ if $] < 5.006 use bytes; }
This will cause 5.005 and below to ignore "use bytes" and cause 5.6+ to use the bytes pragma as usual? Nifty!

Thanks for the help, Josh


Comment on Just so I understand
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2015-07-30 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls