Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Escaping characters in one-liners

by saintmike (Vicar)
on Mar 12, 2005 at 08:07 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://438888]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found