Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: CORE::stat() doesn't appear to be the same as stat

by Eily (Monsignor)
on Sep 10, 2018 at 14:52 UTC ( [id://1222058]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use v5.14;
    use strict;
    use warnings;
    ...
    
    say 'stat($fh): ', join " ", stat($fh);
    say '$sub->($fh): ', join " ", $sub->($fh);
    
  2. or download this
    stat($fh): 0 0 33206 1 0 0 0 0 1536590875 1536590875 1536590555
    *::stat{CODE} is undef
    $sub = \&stat;
    ...
    *::stat{CODE} is CODE(0x340be0)
    stat($fh): 0 0 33206 1 0 0 0 0 1536590875 1536590875 1536590555
    Undefined subroutine &main::stat called line 18.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1222058]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-19 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found