in reply to spreadsheet XLSX
$t1 is a variable. If it doesn't contain the right id value, the regex won't work.
I'd rather do the following instead:
and this also gives you a chance to inspect which format codes it does recognize.my %fmt = $member_styles -> contents =~ /\bnumFmtId="(\d+)"\s+formatCo +de="([^"]*)/g; my $formatCode = $fmt{$t1} || ''
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: spreadsheet XLSX
by lpanokarren (Novice) on Nov 15, 2013 at 21:44 UTC |
In Section
Seekers of Perl Wisdom