note
etcshadow
Well, the reason that I'd want to use it as a module (really, even, making it a module is just an end-around run at making it a command line option to the perl interpretter), is because you <i>could</i> use it for anything that puts files on the command line.
<p>
The thing about making it a script is that, sure, you <i>can</i> use it to work like <code>grep</code>... but greping files is just the beginning of the potential for this. Any command or script you have that expects files in @ARGV could benefit from this. I know that I, myself, do a lot of stuff that fits that bill.
<p>
Imagine, for example, some script <code>perl validate_files.pl [file1] [file2] ...</code>, (whatever validate_files.pl might be): wouldn't it be nice to be able to say: "<code>perl -mr validate_files.pl *</code>"? Or, for that matter, since it is a module, you could incorporate it into <code>validate_files.pl</code>, activated by a "-r
" switch.
<div class="pmsig">
<div class="pmsig-296575">
<code>
------------
:Wq
Not an editor command: Wq
</code>
</div></div>
334305
334308