Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by antirice (Priest)
on Nov 02, 2007 at 14:28 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://648654]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2024-04-18 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found