in reply to Re^2: Paul Graham on Great Hackers
in thread Paul Graham on Great Hackers

I really mean handle files as big strings. Performace wise, these could be made equivalent:
while (<FH>) { } # or while (split(/\n/, $file_scalar_thing) { }
And when $file_scalar_thing goes out of scope, it's saved (if changed).

Replies are listed 'Best First'.
Re^4: Paul Graham on Great Hackers
by Joost (Canon) on Jul 29, 2004 at 13:36 UTC
Re^4: Paul Graham on Great Hackers
by wolfger (Deacon) on Jul 29, 2004 at 16:41 UTC
    I don't know about you, but I sure don't want every file I open to have changes saved when it goes out of scope.


    Believe nothing, no matter where you read it, or who said it - even if I have said it - unless it agrees with your own reason and your own common sense. -- Buddha