Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

remember perl one-liners

by tinita (Parson)
on Dec 11, 2005 at 05:17 UTC ( #515794=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    open my $fh, ">>", $history or die $!;
    print $fh $hist;
    close $fh;
    
  2. or download this
    # put these in your .bashrc
    alias addhist="history 2 | addhist.pl"
    alias readhist="history -r ~/.oneliners"
    ...
    [hours or days later...]
    $ readhist
    $ !! # will get you your last saved oneliner from above
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://515794]
Approved by dorko
help
Chatterbox?
[MidLifeXis]: Project Admin, a while ago: "No, I would prefer you didn't close that ticket yet confirming $vendor's support process yet. Continue to periodically check back to see if it has changed."...
[MidLifeXis]: Project Admin, today, after many periodic updates from me: "Why hasn't this been closed yet? Is there anything I can do to get this closed?" <facepalm>

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2017-01-19 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.