Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Escaping characters in one-liners

by saintmike (Vicar)
on Mar 12, 2005 at 08:07 UTC ( #438888=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    # one_liner - produce a perl one-liner out of perl code
    ...
    my $in = join "", <>;
    $in =~ s/\n/ /g;
    print "perl -e ", qquote($in, ':shell'), "\n";
    
  2. or download this
    $ one_liner
    print "hello\n";
    ...
    ^D
    
    perl -e "print \"hello\\n\"; print \"world\\n\"; "
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2014-08-23 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls