This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
warn() without args doesn't take a default message in $_, but in $@
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 12 Mar 2007 21:00:05 +0000 (21:00 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 12 Mar 2007 21:00:05 +0000 (21:00 +0000)
p4raw-id: //depot/perl@30554

pod/perldiag.pod

index 1b01b6b..b80331d 100644 (file)
@@ -4883,7 +4883,7 @@ minimum version.
 =item Warning: something's wrong
 
 (W) You passed warn() an empty string (the equivalent of C<warn "">) or
-you called it with no args and C<$_> was empty.
+you called it with no args and C<$@> was empty.
 
 =item Warning: unable to close filehandle %s properly