code written under 5.10.0 to be run under 5.8.8
- From: dummy@xxxxxxxxxx
- Date: Sat, 10 May 2008 20:51:54 -0700
I understand that one can specify that a script must be run under a perl
version no earlier than a particular version. So, if I say 'use 5.6.0',
that code will throw an error if one tries to run it under perl 5.5.0,
right?
But how about the reverse case?
Suppose I write code on my desktop, which has perl 5.10.0 installed, and
later transfer that code to a system that only has perl as far as 5.8.8.
How can I cause an error on the desktop if I accidentally use any of the
new features of 5.10.0, as I would want to do to signal incompatibility?
Is this sort of thing impossible?
.
- Follow-Ups:
- Re: code written under 5.10.0 to be run under 5.8.8
- From: Ben Bullock
- Re: code written under 5.10.0 to be run under 5.8.8
- Prev by Date: Re: Perl DBI Module: SQL query where there is space in field name
- Next by Date: Re: Printing a new line
- Previous by thread: FAQ 4.22 How do I expand function calls in a string?
- Next by thread: Re: code written under 5.10.0 to be run under 5.8.8
- Index(es):
Relevant Pages
|