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

Re: Exposing minimum required perl version ('use x.y.z') to Perl code during runtime?

by hippo (Archbishop)
on Apr 01, 2014 at 10:43 UTC ( [id://1080528]=note: print w/replies, xml ) Need Help??


in reply to Exposing minimum required perl version ('use x.y.z') to Perl code during runtime?

Do you mean/want something like this?

use strict; use warnings; eval { require 5.10.1; print "Newish\n"; }; eval { require 5.18.0; print "Newer\n"; };
  • Comment on Re: Exposing minimum required perl version ('use x.y.z') to Perl code during runtime?
  • Download Code

Replies are listed 'Best First'.
Re^2: Exposing minimum required perl version ('use x.y.z') to Perl code during runtime?
by sedusedan (Pilgrim) on Apr 01, 2014 at 11:16 UTC
    Nope :) See my reply to AM.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2025-11-14 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (71 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.