develooper Front page | perl.perl5.porters | Postings from June 2008

incorrect variable reported in uninitialized value warning

Thread Next
From:
Yuval Kogman
Date:
June 21, 2008 18:53
Subject:
incorrect variable reported in uninitialized value warning
Message ID:
20080622015237.GT23537@woobling.org
perl -we 'my $f = "does_not_exist"; warn -e $f'
Use of uninitialized value $f in warn at -e line 1.
Warning: something's wrong at -e line 1.

$f is not the uninitialized value, but the return from -e

-- 
  Yuval Kogman <nothingmuch@woobling.org>
http://nothingmuch.woobling.org  0xEBD27418


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About