-
-
30 Jul 2008 22:17:41 UTC
- Distribution: ARGV-readonly
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (596 / 0 / 0)
- Kwalitee
Bus factor: 0- 66.67% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (2.12KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
ARGV::readonly - make <> open files regardless of leading/trailing whitespace and/or control characters such as |, >, amd <.
SYNOPSIS
this module allows
use ARGV::readonly; while(<>){ ...
to be safer in hostile environments where one is bullheaded enough to give * as the command line argument. See rants on P5P from July, 2008.
DESCRIPTION
the code is shorter than the documentation. Please look at it.
EXPORT
None by default.
TO DO
ideally a suite of ARGV::* modules will appear, each doing their little thing, in a way that they won't stomp on each other's toes. This module has no exclusion interface or anything, so an @ARGV modifier that, for instance, preprocesses *.gz into
"gunzip -c $_ |"
is either going to have to undo the mods made here or be incompatible.HISTORY
SEE ALSO
July 2008 perl5 porters archive
AUTHOR
furtively assembled by David Nicol <davidnico@cpan.org>
COPYRIGHT AND LICENSE
This module is hereby placed in the public domain.
Module Install Instructions
To install ARGV::readonly, copy and paste the appropriate command in to your terminal.
cpanm ARGV::readonly
perl -MCPAN -e shell install ARGV::readonly
For more information on module installation, please visit the detailed CPAN module installation guide.