in reply to Editing Contents of a File
#!/usr/bin/perl -w use strict; use Tie::File; tie my @a, "Tie::File", "/tmp/foo" or die $!; for (@a) { s/hello/goodbye/gi; } [download]