Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Data type validation using regular expressions

by FunkyMonk (Chancellor)
on May 27, 2007 at 14:59 UTC ( [id://617743]=note: print w/replies, xml ) Need Help??


in reply to Re: Data type validation using regular expressions
in thread Data type validation using regular expressions

(my $spec_file = shift) or die $syntax; (my $data_in_file = shift) or die $syntax; (my $data_out_file = shift) or die $syntax; # etc...

Yuk!

die $syntax unless @ARGV == 5; my ($spec_file, $data_in_file, $data_out_file, $log_file, $max_errors) + = @ARGV;

or

my ($spec_file, $data_in_file, $data_out_file, $log_file, $max_errors) + = @ARGV; die $syntax unless defined $max_errors;

Do not repeat yourself!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found