Re: Editing files inplace with the <> operator

2003-09-04 Thread Babylon
Thanks for your help and for the detailed info :) (Needless to say it works fine when i changed it to while (<>) ) "Sudarshan Raghavan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Babylon wrote: > > >I know how it's supposed to be done but when i tried it in a program i'm > >writ

RE: Editing files inplace with the <> operator

2003-09-04 Thread Bob Showalter
Babylon wrote: > ... > for $file () > { > push @ARGV, $file; > } Not related to the problem, but the loop here is unnecessary. Just use: @ARGV = ; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Editing files inplace with the <> operator

2003-09-04 Thread Sudarshan Raghavan
Babylon wrote: I know how it's supposed to be done but when i tried it in a program i'm writing at the moment it isn't working quite how i expected. The program is, in it's simplest form (which still doesn't work): -- #!perl for $file () { push @