Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?
[Discipulus]: Oh I got a (small but better than nothing) salary increase!! beer for all!
[cavac]: Not sure if it's only my connection, but pause.cpan.org seems rather slow to respond today.
[cavac]: Could some of you just log in for a second and check, for example, the tail daemon logfile?

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-02-22 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (325 votes). Check out past polls.