Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Uncommon but Useful Perl Command Line Options

by Not_a_Number (Parson)
on Jan 28, 2004 at 20:36 UTC ( #324777=note: print w/replies, xml ) Need Help??


in reply to Uncommon* but Useful Perl Command Line Options for One-liners

Sol-Invictus++!

However, as this is posted as a tutorial (and should consequently attract a lot of not-so-experienced PMs), and since perl is cross-platform, I suggest you either:

1) Add "(for *nix users only)" to your title;

2) Include a preamble about different quoting systems for one-liners on different OSs; or:

3) Point non_*nix users to perlfaq3 "Why don't perl one-liners work on my DOS/Mac/VMS system?"

dave

  • Comment on Re: Uncommon but Useful Perl Command Line Options

Replies are listed 'Best First'.
Re: Re: Uncommon but Useful Perl Command Line Options
by Sol-Invictus (Scribe) on Jan 28, 2004 at 21:53 UTC
    fair points - note however I wrote and tested this on a Mac :).

      Okay. But your examples don't work on Windoze.

      Basic advice to Win users:

      Change " to ' # Double quotes to single quotes

      dave

      Update - Ooops: Of course, I wrote exactly the opposite of what I meant:

      Change ' to " # Single quotes to double quotes

      dave

        Tis done - I clarified things a tad though I did this before reading your posting, thanks for the ehads up :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://324777]
help
Chatterbox?
[Lady_Aleena]: Updating things can be fun, if there is a better way to do it.
[Corion]: Lady_Aleena: Mostly, it's just housekeeping, but it inspires me about things I could do with it, so that's good ;)
[Lady_Aleena]: By the way, I stopped by to let someone know I'm still alive, though I haven't found anything to write in perl for a while now.
[Lady_Aleena]: I need inspiration.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2017-09-24 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (274 votes). Check out past polls.

    Notices?