The Grumpy Editor's guide to note-taking applications
Posted May 29, 2007 0:09 UTC (Tue) by
tqk (guest, #29605)
In reply to:
The Grumpy Editor's guide to note-taking applications by roelofs
Parent article:
The Grumpy Editor's guide to note-taking applications
> > You forgot about one of the simplest and easiest note-taking programs: cat!
>
> He did mention that he was restricting the field to graphical apps. It would be hard to argue that cat falls into that category (so to speak). ;-)
Port it to perl, and toss in perl::Tk? Here's what I use:
#!/usr/bin/perl
#
# ~/devl/perl/things.pl replaces ~/sh/things.sh; datestamps,
# separates, and pretty-prints entries.
#
use strict;
use warnings;
my $outfile = qq($ENV{HOME}/dox/things_to_remember.html);
my $now;
chomp( $now = qx(date) );
open( THINGS, ">> $outfile" ) ||
die qq($0: could not open $outfile for append: $!);
print THINGS q( <li> ) . $now . q(<br>) . "\n";
print THINGS q( <pre>) . "\n";
while( <STDIN> ) {
s/\</</g;
s/\>/>/g;
print THINGS;
}
print THINGS q( </pre>) . "\n\n";
close( THINGS );
__END__
(
Log in to post comments)