Hi all,
If I run the following small test snippet 

<--------------------------------------snip------------>
#! /usr/bin/perl

use strict;
use warnings;

use autodie;



open my $hdl, ">", "fileio1.txt";
print $hdl "a line\n";
close $hdl;

open HDL, ">", "fileio2.txt";
print HDL "a line\n";
close HDL;
<--------------------------------------snap------------>


I get the message:
Name "main::HDL" used only once: possible typo at ./fileio1.pl line 16.

Why? The same as with $hdl above I use HDL three times.



-- 
Manfred




-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to