Re: Attempting to update files blanks them instead

2007-05-15 Thread Kent Frazier
That did the trick. I figured it had to be something simple. To my credit, the book had it wrong too. Anyways, thanks for your help. On 5/14/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 5/14/07, Kent Frazier <[EMAIL PROTECTED]> wrote: snip > Can someone with a more honed ey

Attempting to update files blanks them instead

2007-05-14 Thread Kent Frazier
#!perl -w use strict; $^I = ".bak"; while (<>) { if ( /^#!/ ) { $_ .= "## Copyright (C) 2007 by Kent Frazier.\n"; } } Hope this doesn't end up being something too newbish, and thanks in advance for all your help. Kent