Don't ask to ask, just ask | |
PerlMonks |
Re: My program hangsby vinoth.ree (Monsignor) |
on Jun 23, 2014 at 10:10 UTC ( [id://1090901]=note: print w/replies, xml ) | Need Help?? |
Hi, Your program is not hangs,Its waiting for input from you, when you write <> it is a abbrivation for <STDIN>, so it will read either from a file specified on the command line or from stdin if no file is given. As told by Corion, you need to use <$fh>, to read from your file handle. All is well
In Section
Seekers of Perl Wisdom
|
|