Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: What do you do with typos in the documentation?

by stevieb (Canon)
on Jan 29, 2021 at 13:31 UTC ( [id://11127634]=note: print w/replies, xml ) Need Help??


in reply to What do you do with typos in the documentation?

"I didn't even try running it because it has the bareword of udp there which I'm pretty sure is illegal?"

So you found two documentation "typos". One was a reading comprehension and instruction following issue on your part, the other was a lack of testing or investigation.

The examples in the IO::Socket::INET documentation are not run under strict, so a bareword is completely legal and legitimate. Not only that, it appears as though you changed the excerpt, so it's not even an authentic example from their documentation.

blah(bareword); sub blah { my $word = shift; print "$word\n"; }

Output:

bareword

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-29 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found