in reply to Is there exist a module to provide access to a file via hashes using TIE ?

Tie::TextDir


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
  • Comment on Re: Is there exist a module to provide access to a file via hashes using TIE ?
  • Download Code

Replies are listed 'Best First'.
Re^2: Is there exist a module to provide access to a file via hashes using TIE ?
by Courage (Parson) on Sep 23, 2004 at 23:47 UTC
    thanks!

      Your sample usage seems to want to do an inplace edit on a file. You can do that with the -i flag....

      perl -pi.bak -e 's/this/that/g' infile

      This will modify infile and write a backup of original to infile.bak No .ext == no backup.

      cheers

      tachyon