=================================================================== RCS file: /cvs/todotxt/Text-Todo/bin/todo.pl,v retrieving revision 1.16 retrieving revision 1.20 diff -u -r1.16 -r1.20 --- todotxt/Text-Todo/bin/todo.pl 2010/01/12 23:46:40 1.16 +++ todotxt/Text-Todo/bin/todo.pl 2010/01/22 01:30:45 1.20 @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $AFresh1: todo.pl,v 1.15 2010/01/12 20:30:55 andrew Exp $ +# $AFresh1: todo.pl,v 1.19 2010/01/21 21:10:38 andrew Exp $ ######################################################################## # todo.pl *** a perl version of todo.sh. Uses Text::Todo. # @@ -13,12 +13,10 @@ use strict; use warnings; -use Data::Dumper; - use Getopt::Std; use Text::Todo; -use version; our $VERSION = qv('0.0.1'); +use version; our $VERSION = qv('0.1.1'); # option defaults my $config_file = $ENV{HOME} . '/todo.cfg'; @@ -474,9 +472,9 @@ if (s/^\s*export\s+//xms) { my ( $key, $value ) = /^([^=]+)\s*=\s*"?(.*?)"?\s*$/xms; if ($key) { - foreach my $k ( keys %config ) { - $value =~ s/\$\Q$k\E/$config{$k}/gxms; - $value =~ s/\${\Q$k\E}/$config{$k}/gxms; + foreach my $k ( keys %{ $config } ) { + $value =~ s/\$\Q$k\E/$config->{$k}/gxms; + $value =~ s/\${\Q$k\E}/$config->{$k}/gxms; } foreach my $k ( keys %ENV ) { $value =~ s/\$\Q$k\E/$ENV{$k}/gxms; @@ -504,7 +502,7 @@ Since the $VERSION can't be automatically included, here is the RCS Id instead, you'll have to look up $VERSION. - $Id: todo.pl,v 1.16 2010/01/12 23:46:40 andrew Exp $ + $Id: todo.pl,v 1.20 2010/01/22 01:30:45 andrew Exp $ =head1 SYNOPSIS