just a little more code
Not significantly, I just wrote it more verbosely.
use File::Basename; my ($zip) = fileparse($file) =~ /^(\d{5})\D/;
In reply to Re^3: Matching hyphens in file path to extract zip code
by haukex
in thread Matching hyphens in file path to extract zip code
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |