Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: RFC: new module r (or R)

by etcshadow (Priest)
on Mar 05, 2004 at 18:45 UTC ( #334318=note: print w/ replies, xml ) Need Help??


in reply to Re: RFC: new module r (or R)
in thread RFC: new module r (or R)

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 could use it for anything that puts files on the command line.

The thing about making it a script is that, sure, you can use it to work like grep... 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.

Imagine, for example, some script perl validate_files.pl [file1] [file2] ..., (whatever validate_files.pl might be): wouldn't it be nice to be able to say: "perl -mr validate_files.pl *"? Or, for that matter, since it is a module, you could incorporate it into validate_files.pl, activated by a "-r " switch.

------------ :Wq Not an editor command: Wq


Comment on Re: Re: RFC: new module r (or R)
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://334318]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2014-09-21 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls