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

Re: Why is the error thrown from close(FH) when the error is the missing <> on while(FH)?

by 7stud (Deacon)
on Feb 01, 2013 at 02:54 UTC ( [id://1016430]=note: print w/replies, xml ) Need Help??


in reply to Why is the error thrown from close(FH) when the error is the missing <> on while(FH)?

How did you get that far:
Global symbol "$inline" requires explicit package name at 2.pl line 6. Global symbol "$inline" requires explicit package name at 2.pl line 7. Global symbol "@contexts" requires explicit package name at 2.pl line +7. Bareword "KNOWN_HOSTS" not allowed while "strict subs" in use at 2.pl +line 14. Execution of 2.pl aborted due to compilation errors.

Next, is it your understanding that a while loop conditional can only be the line input operator(<>)?

  • Comment on Re: Why is the error thrown from close(FH) when the error is the missing <> on while(FH)?
  • Download Code

Replies are listed 'Best First'.
Re^2: Why is the error thrown from close(FH) when the error is the missing <> on while(FH)?
by techgrrl (Sexton) on Feb 01, 2013 at 03:05 UTC

    Greetings

    It is a code fragment, not a full program.

    In order to actually create an executable script I would need to provide multiple files and quite a bit more code. I can do that if requested, but I was hoping that since the reason the error was thrown was given (the missing double diamond <> operator) that someone could look at this and help me understand why is was thrown from the close(FH) instead of the while(FH) where the error is.

    I don't think duplicating the error would tell you anything the sample does not already tell you, but I could be wrong I suppose.

    Cheers,

    TechGrrl

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-24 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found