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 (Prior)
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?
[Corion]: erix: Yeah - I think basically the solution should be a "fake_os.h", which implements just enough stub routines for any OS to make the compilation of the parser pass. But for that, the complete (relevant) source code needs to be extracted, and the ...
[Corion]: ... Ruby script only extracts parts of the source code as Windows-specific files aren't considered relevant
[erix]: you got your work cut out for the hoidays :)
[erix]: +l
[Corion]: erix: Heh - so many things, so little time :D

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2018-07-23 11:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (465 votes). Check out past polls.

    Notices?