It seems to have nothing to do with long paths or non-latin characters:

use strict; use warnings; use feature 'say'; use Spreadsheet::Read; use Spreadsheet::ParseExcel; open my $h, '<', '1.ods'; # this file exists Spreadsheet::ParseExcel-> new-> parse( $h ); #### say 'eof' if eof $h; say 'ok' if defined ReadData( $h );

says 'eof'. But if line marked with '###' is commented out, the output is

Sorry, references as input are not (yet) supported by Spreadsheet::Rea +dSXC at xl.pl line 11.

So, the reason that you can't supply filehandles to Spreadsheet::ReadSXC is because it doesn't support them. And there was no proper error reported for your example, because of this line -- and that line wasn't reached.

Copying to a temporary safely named file can solve it:

use strict;
use warnings;
use feature 'say';
use utf8;
use Spreadsheet::Read;
use File::Temp;
use Win32::LongPath;

my $tmp = File::Temp-> new( SUFFIX => '.ods' )-> filename;

copyL 'проверка.ods', $tmp;                 # this file exists

say 'ok' if defined ReadData( $tmp );


In reply to Re: Spreadsheet::Read Win32::LongPath::openL by vr
in thread Spreadsheet::Read Win32::LongPath::openL by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.