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\"; "