Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Best way to keep script with generated output

by benizi (Hermit)
on Dec 09, 2009 at 03:10 UTC ( #811856=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    "
    #!perl -i.bak
    @ARGV = ($0);
    ...
    "
    # normal lines start here
    # etc. etc.
    
  2. or download this
    #!/bin/env updater
    # perl -lanwe '(...the script from before...)' inputfile
    # ...
    # the normal output...
    # ...
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    open my $pipe, "| $ENV{SHELL}";
    print $pipe $script;
    close $pipe;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2022-10-04 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (17 votes). Check out past polls.

    Notices?