Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: How to ensure that a supported version of my script is being executed?

by flexvault (Monsignor)
on Aug 21, 2012 at 20:03 UTC ( #988842=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to ensure that a supported version of my script is being executed?
in thread How to ensure that a supported version of my script is being executed?

taint,

Don't know it you meant your comment for me or for the OP's original question, but the OP did state that the 'person(s)' know(s) Perl, and can delete/modify code that tests for the correct script. A simple '#" in front of your code would defeat the test.

It's still a management problem.

"Well done is better than well said." - Benjamin Franklin

  • Comment on Re^3: How to ensure that a supported version of my script is being executed?

Replies are listed 'Best First'.
Re^4: How to ensure that a supported version of my script is being executed?
by taint (Chaplain) on Aug 21, 2012 at 20:57 UTC
    Greetings, It was intended for the OP (I apparently missed the "they can re-write" his script part). :P
    In response to your post; Right you are -- chown opuid:opgid ./opscript-name; chmod 0744 ./opscript-name (op prefix meaning Original Poster). :)
    --Chris
    #!/usr/bin/perl -Tw
    use perl::always;
    my $perl_version = "5.12.4";
    print $perl_version;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988842]
help
Chatterbox?
[davido]: And remember; time is hard. :) As soon as you think, I've got this, you'll discover that time is harder than that. :)
[1nickt]: TCLion are you parsing the dates with DateTime or another tool?
[1nickt]: I note DateTime::Format:: Flexible, announced immediately below this box in the CPAN feed
[Corion]: 1nickt: That one sounds sensible as it will tell you when it found an error
[1nickt]: Throws on error, I believe
[1nickt]: But should handle month as number or word

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (19)
As of 2017-03-23 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (287 votes). Check out past polls.