Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Command-line arguments to command-line Perl

by eyepopslikeamosquito (Chancellor)
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.

Replies are listed 'Best First'.
Re^2: Command-line arguments to command-line Perl
by RecursionBane (Beadle) 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?
[Corion]: Meh. I need to find myself a better "programming" feed than r/programming (which is just HackerNews reposts and advertisements, very little code). Maybe I should select a list of links that I liked on r/programming and then google for ...
[Corion]: ... an aggregator site that also listed (ideally) all of these links once. And maybe also have an exclude list to blacklist some of the most spammy links that the site may have never mentioned at all
[marto]: I gave up reading HN at all, and feel much better for it :P
[Corion]: Now, how to best automate that Google search ... :-)
[Corion]: marto: Yeah, I'm also short of not reading it at all. I already stopped reading it in the morning because it gave me a foul mood.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2017-07-24 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (354 votes). Check out past polls.