Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: What does _ mean?

by runrig (Abbot)
on Feb 02, 2009 at 20:26 UTC ( [id://740810]=note: print w/replies, xml ) Need Help??


in reply to Re: What does _ mean?
in thread What does _ mean?

And what does PBP say? To make unnecessary calls to stat (I hope not)?

Replies are listed 'Best First'.
Re^3: What does _ mean?
by jvector (Friar) on Feb 03, 2009 at 14:27 UTC
    I looked up '_' in PBP's index and it referred me to (underscore). Looked up 'underscore', subtopic 'best practice' : p.473:

    Use underscores to improve the readability of long numbers.

    No reference to the file operations in any of the other subtopics in the index either.


    This signature will be ready by Easter
      The index mentions stat. But like underscore, there's no relation to the topic at hand.
Re^3: What does _ mean?
by BenHopkins (Sexton) on Jun 21, 2010 at 21:31 UTC

    It doesn't specifically address this, but I'd apply the general principle of commenting any obscure usage. Of course, one man's obscure is another man's clear.

    I ran into this exact thing in an old program I had to modify and added this comment after figuring out what it meant:

    ######### FINALLY FIGURED OUT WHAT _ IS!!! # QUOTE: # # If any of the file tests (or either the stat() or lstat() operators +) are given # the special filehandle consisting of a solitary underline, then the +stat structure # of the previous file test (or stat operator) is used, saving a syste +m call. # # Isn't that something? All I gotta do now figure out what or where i +s the previous # test??

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found