dTHR;
if (ckWARN(WARN_UNOPENED))
Perl_warner(aTHX_ WARN_UNOPENED,
- "Close on unopened file <%s>",GvENAME(gv));
+ "Close on unopened file %s",GvENAME(gv));
SETERRNO(EBADF,SS$_IVCHAN);
}
return FALSE;
if (tmpgv == PL_defgv)
return PL_laststatval;
if (ckWARN(WARN_UNOPENED))
- Perl_warner(aTHX_ WARN_UNOPENED, "Stat on unopened file <%s>",
+ Perl_warner(aTHX_ WARN_UNOPENED, "Stat on unopened file %s",
GvENAME(tmpgv));
PL_statgv = Nullgv;
sv_setpv(PL_statname,"");
equivalent to 01411. Octal constants are introduced with a leading 0 in
Perl, as in C.
-=item Close on unopened file <%s>
+=item Close on unopened file %s
(W unopened) You tried to close a filehandle that was never opened.
instead, which does return. To suppress this warning, put the exec() in
a block by itself.
-=item Stat on unopened file <%s>
+=item Stat on unopened file %s
(W unopened) You tried to use the stat() function (or an equivalent file
test) on a filehandle that was either never opened or has since been
(W unopened) You tried to use the tell() function on a filehandle that
was either never opened or has since been closed.
-=item Test on unopened file <%s>
+=item Test on unopened file %s
(W unopened) You tried to invoke a file test operator on a filehandle
that isn't open. Check your logic. See also L<perlfunc/-X>.
else {
if (ckWARN(WARN_UNOPENED)) {
gv = cGVOP_gv;
- Perl_warner(aTHX_ WARN_UNOPENED, "Test on unopened file <%s>",
+ Perl_warner(aTHX_ WARN_UNOPENED, "Test on unopened file %s",
GvENAME(gv));
}
SETERRNO(EBADF,RMS$_IFI);
warn(warn_nl, "open"); [Perl_do_open9]
open(F, "true\ncd")
- Close on unopened file <%s> [Perl_do_close] <<TODO
+ Close on unopened file %s [Perl_do_close] <<TODO
$a = "fred";close("$a")
tell() on unopened file [Perl_do_tell]
no warnings 'unopened' ;
close "joe" ;
EXPECT
-Close on unopened file <fred> at - line 3.
+Close on unopened file fred at - line 3.
########
# doio.c [Perl_do_tell Perl_do_seek Perl_do_sysseek Perl_my_stat]
use warnings 'io' ;
tell() on unopened file at - line 4.
seek() on unopened file at - line 5.
sysseek() on unopened file at - line 6.
-Stat on unopened file <STDIN> at - line 7.
+Stat on unopened file STDIN at - line 7.
########
# doio.c [Perl_do_print]
use warnings 'uninitialized' ;
no warnings 'unopened' ;
-T STDIN ;
EXPECT
-Test on unopened file <STDIN> at - line 4.
+Test on unopened file STDIN at - line 4.
########
# pp_sys.c [pp_fttext]
use warnings 'newline' ;