Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

stat on in-memory filehandle warns inconsistently across perl versions

by pryrt (Abbot)
on Mar 07, 2019 at 16:14 UTC ( [id://1231016]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >berrybrew exec perl -Mautodie -Mstrict -Mwarnings=FATAL,all -le "my $
    +m = ''; open my $fh, '<', \$m; stat($fh); print STDERR 'ok'"
    perl-5.26.2_64_PDL
    ...
    perl-5.10.1_32
    ==============
    stat() on unopened filehandle $_[...] at -e line 1.
    
  2. or download this
    $ perlbrew exec perl -Mautodie -Mstrict -Mwarnings=FATAL,all -le 'my $
    +m = ""; open my $fh, "<", \$m; stat($fh); print STDERR "ok"'
    
    ...
        PERLBREW_HOME: /home/peter/.perlbrew
        PERLBREW_PATH: /home/peter/perl5/perlbrew/bin:/home/peter/perl5/pe
    +rlbrew/perls/perl-5.24.0-thread-multi/bin
        PERLBREW_MANPATH: /home/peter/perl5/perlbrew/perls/perl-5.24.0-thr
    +ead-multi/man
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1231016]
Approved by hippo
Front-paged by davies
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-25 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found