Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Frustrating Error: "Global symbol requires explicit package name" - Can't see why?

by RichardK (Parson)
on Aug 24, 2015 at 23:07 UTC ( [id://1139750]=note: print w/replies, xml ) Need Help??


in reply to Frustrating Error: "Global symbol requires explicit package name" - Can't see why?

threads doc's have two potentially interesting things to say, that may just help.

firstly, you seem to missing a semicolon or two.

async BLOCK; "async" creates a thread to execute the block immediately foll +owing it. This block is treated as an anonymous subroutine, and so m +ust have a semicolon after the closing brace.

also

Threads are implemented in a way that make them easy to misuse. Few people know how to use them correctly or will be able to provide h +elp. The use of interpreter-based threads in perl is officially discouraged +.
  • Comment on Re: Frustrating Error: "Global symbol requires explicit package name" - Can't see why?
  • Select or Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-20 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found