Hello There.
Can anyone please explain to me why the following code does not work:
-----Code
open my $fh, "<", "filename";
my %hh = (handle => $fh);
print $hh->{handle} "something";
-----End Code
while the slightly modified code does work?
-----Code
open my $fh, "<", "filename";
my %hh = (handle => $fh);
my $f2 = $hh->{handle};
print $f2 "something";
-----End Code
Aren't they suppose to be the same?
Thanks,
Shmuel.
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl