From: Don Armstrong Date: Thu, 23 Feb 2012 18:18:58 +0000 (+0000) Subject: write quote to stdout X-Git-Url: https://git.donarmstrong.com/?p=lib.git;a=commitdiff_plain;h=6ee2da0dcd9a7a481474c8f62e216e7f62694a09 write quote to stdout --- diff --git a/signature_stuff/pick_a_quote.pl b/signature_stuff/pick_a_quote.pl index 83f319a..cb1a432 100755 --- a/signature_stuff/pick_a_quote.pl +++ b/signature_stuff/pick_a_quote.pl @@ -11,7 +11,7 @@ my ($temp_file,$quote_file) = @ARGV; $temp_file ||= User->Home."/lib/signature_stuff/sigtemplate.txt"; $quote_file ||= User->Home."/lib/signature_stuff/quote.txt"; -my $sigfile = new IO::File User->Home."/.signature", 'w' or die "Unable to open ~/.signature for writing; $!"; +# my $sigfile = new IO::File User->Home."/.signature", 'w' or die "Unable to open ~/.signature for writing; $!"; my $templatefile = new IO::File $temp_file, 'r' or die "Unable to open $temp_file $!"; local $/; @@ -41,6 +41,4 @@ else { $template =~ s/\[\%\s*quote\s*\%\]/$quote/; -print {$sigfile} $template; - -undef $sigfile; +print $template;