in reply to Re: Is there a way to make these two regex lines cleaner?
in thread Is there a way to make these two regex lines cleaner?
Awesome catch!
I am using the use the Spreadsheet::Read module. Which uses the command,
my $book = ReadData ("$upload_dir/$filename");
It will allow me to open the buffer, read it myself, then hand off the buffer to the ReadData command.
Sadly that's failing, see below, and will have to debug more.
Again, awesome catch! Glad I included the garbage.
open my $fh, '<:raw:encoding(UTF-8)', "$upload_dir/$filename"; read $fh, my $string, -s $fh; close $fh; my $book = ReadData ($string);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Is there a way to make these two regex lines cleaner?
by haukex (Archbishop) on Apr 16, 2022 at 19:30 UTC | |
|
Re^3: Is there a way to make these two regex lines cleaner?
by swl (Prior) on Apr 16, 2022 at 23:59 UTC |