using one file to reference zip codesInstead of Spreadsheet, INI file maybe a lite weight alternative. The content may be look like:
Then your Perl script:code1 = state 1 code2 = state 2 ...
Code not tested, but the idea is like that. CPAN Config::Tinyuse strict; use Config::Tiny; my $Config = Config::Tiny->read( 'ZipCodes.ini' ); sub check { my $code = shift; return $Config->{_}{$code} or die "No such code '$code' "; } my $st_name = check ( $code ) ;
In reply to Re: Multiple file handles
by exilepanda
in thread Multiple file handles
by MoodyDreams999
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |