Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Multi-Threaded Elevator Simulator

by samtregar (Abbot)
on Aug 13, 2002 at 17:21 UTC ( [id://189882]=note: print w/replies, xml ) Need Help??


in reply to Re: Multi-Threaded Elevator Simulator
in thread Multi-Threaded Elevator Simulator

Yes. The other way to require 5.8 is to write:

use 5.8.0;

The problem with that is that v-strings (numbers with multiple dots) don't exist in Perl prior to 5.6.0. That means that instead of a nice message telling you to upgrade to 5.8 you get a syntax error. Check out what happens if you try to use just 5.8:

$ perl -e 'use 5.8' Perl v5.800.0 required (did you mean v5.008?)--this is only v5.8.0, st +opped at -e line 1. BEGIN failed--compilation aborted at -e line 1.

-sam

PS: I cover this topic in greater depth in my just-published book, Writing Perl Modules for CPAN. Buy a copy and support the artist of this message!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-29 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found