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