Le jeu 11/12/2003 à 10:27, Ajey Kulkarni a écrit :
> perl t.pl
> Name "main::FH" used only once: possible typo at t.pl line 6.
> 
> cat t.pl
> 
> #!/usr/bin/perl
> 
> use strict;
> use warnings;
> 
> open FH, "out.dat";
> 
> 
> Why am i getting this warning? When i remove the warnings,this goes off?
> Is there any problem if i not include "use warnings" line?

This is just a warning saying that you are using FH only once (well,
it's written so). Indeed, why would you need to open the file if you are
not writing or reading or accessing it anyway?
Just, for example, close it using
  close FH;
unless you wanna do something special with that?

Yannick


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to