Brothers, I come to you this day with a question I thought I would never ask... How might I make the usage of strictures optional in my code, at Perl's discretion?
The situation is that, yesterday, I distributed some code to a host of hosts, set to run unattended each night. One of these hosts appears to be exceedingly ancient, as it failed to run my code, crying out Can't locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1 /opt/perl5/lib/site_perl/5.005 .) before dying.
How might I alter my customary use strict such that this ancient host will withstand its presence? For it seems the alternatives would be to either discard it entirely or attempt to maintain separate versions of all code for that host and I fear the dragons that lie in wait along either path.
Update: Thanks, everyone, for both the suggestions that I try to get this borked Perl install fixed and for the code to work around this particular (aspect of the) problem.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.