Gives you compile-time checks and has all the advantages of the hash solution.use constant FILE_NAME => 3; # ... unless ( -d $parms[FILE_NAME] ) { # # do some ftp stuff here. # }
In reply to Re^2: Perl record types
by plobsing
in thread Perl record types
by naveed010
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |