Courage has asked for the wisdom of the Perl Monks concerning the following question:
Of course only limited usage is wanted (no large files, and so on, may be read-only usage)$a=$magichash{'/path/to/file/fn'}; # now $a contains file contents $magichash{'/path/to/file/fn'} =~ s/foo/bar/g; # please guess...
Is there exists such a module? On CPAN?
Because if it does not exist, it should be, to simplify writing one-liners, and may be for quick slurping of small files.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is there exist a module to provide access to a file via hashes using TIE ?
by BrowserUk (Patriarch) on Sep 23, 2004 at 23:16 UTC | |
by Courage (Parson) on Sep 23, 2004 at 23:47 UTC | |
by tachyon (Chancellor) on Sep 24, 2004 at 00:19 UTC | |
|
Re: Is there exist a module to provide access to a file via hashes using TIE ?
by BUU (Prior) on Sep 24, 2004 at 01:38 UTC | |
|
Re: Is there exist a module to provide access to a file via hashes using TIE ?
by ihb (Deacon) on Sep 23, 2004 at 23:16 UTC | |
by JediWizard (Deacon) on Sep 23, 2004 at 23:26 UTC | |
|
Re: Is there exist a module to provide access to a file via hashes using TIE ?
by TedPride (Priest) on Sep 24, 2004 at 00:49 UTC |