Re: how can i untain $ARGV from a perl script extending snmp?
- From: rvtol+news@xxxxxxxxxxxx (Dr.Ruud)
- Date: Mon, 6 Oct 2008 19:22:59 +0200
Jordi Moles Blanco schreef:
my $path = $ARGV[3];
my ($path) = $ARGV[3] =~
m{ ^ # SOB
( # start capturing
(?: # start group
/ # a slash
[a-z]+ # followed by 1 or more lowercase letters
) # end group
+ # the group 1 or more times
) # end capturing
$ # EOB
}x;
or in shorthand:
my ($path) = $ARGV[3] =~ m{^((?:/[a-z]+)+)$};
$path or die "bad path";
(untested)
--
Affijn, Ruud
"Gewoon is een tijger."
.
- References:
- how can i untain $ARGV from a perl script extending snmp?
- From: Jordi Moles Blanco
- how can i untain $ARGV from a perl script extending snmp?
- Prev by Date: Re: help with regexp
- Next by Date: Re: combinations
- Previous by thread: Re: how can i untain $ARGV from a perl script extending snmp? [solved]
- Next by thread: Cache::FastMmap
- Index(es):
Relevant Pages
|