Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: File::Copy a bug?

by Roger (Parson)
on Aug 18, 2005 at 13:32 UTC ( #484751=note: print w/replies, xml ) Need Help??


in reply to File::Copy a bug?

COPY: is a label. It puts a "goto" point before the next statement, so that when you do goto COPY your code will resume at $J=....

If you get rid of the $J=... line, the next line, use File::Copy is actually not a run time statement you can place a label on. It is executed at compile time. Therefore you will get a compilation error. If you move the use File::Copy to the top of the Perl script, it will resolve the compilation error.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2022-11-29 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?