Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: clipcommand.pl (Embed perl into your clipboard)

by antirice (Priest)
on Nov 02, 2007 at 14:28 UTC ( #648654=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    -- def_macro note
    my $file = shift or die "Please indicate the note you wish to create/a
    +ppend to";
    ...
    print $fh $_ while <>;
    close $fh or die "Trouble closing file: $!";
    print "Successfully appended to note $file";
    
  2. or download this
    -- def_macro recall
    my $file = shift or die "Please indicate the note you wish to open";
    ...
    local ($/,$\);
    print <$fh>;
    close $fh or die "Couldn't close file: $!";
    
  3. or download this
    -- note example
    This should be the first line
    
  4. or download this
    -- note example
    This should be the second line
    
  5. or download this
    -- recall example
    
  6. or download this
    This should be the first line
    This should be the second line
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2015-07-05 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls