Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 drinking their drinks and smoking their pipes about the Monastery: (18)
As of 2014-07-14 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (262 votes), past polls