Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Command-line arguments to command-line Perl

by eyepopslikeamosquito (Canon)
on Oct 03, 2010 at 22:21 UTC ( #863209=note: print w/ replies, xml ) Need Help??


in reply to Command-line arguments to command-line Perl

I'm curious as to why you need to write a tcsh script at all. Writing scripts in csh (or tcsh) is generally frowned upon; see Csh Programming Considered Harmful for the gory details. Good old /bin/sh is more portable and a generally sounder programming language.

If you possibly can get away with it, however, I strongly urge you to consider writing the whole thing in Perl.


Comment on Re: Command-line arguments to command-line Perl
Download Code
Re^2: Command-line arguments to command-line Perl
by RecursionBane (Sexton) on Oct 04, 2010 at 05:06 UTC

    eyepopslikeamosquito, I agree with you on this point. I usually script entirely in Perl and shy away from shell scripts on principle.

    In this instance, however, it was necessary to write a one-liner for inclusion in a previously existing shell script that couldn't have dependencies on external Perl scripts. An installation of Perl, however, is guaranteed on all target systems.

    ~RecursionBane

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2015-07-02 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (34 votes), past polls