{
if (narg) {
if (narg > 1) {
- Perl_croak(aTHX_ "More than one argument to '%s' open",mode);
+ Perl_croak(aTHX_ "More than one argument to open");
}
if (*args == &PL_sv_undef)
return PerlIO_tmpfile();
* Found that layer 'n' can do opens - call it
*/
if (narg > 1 && !(tab->kind & PERLIO_K_MULTIARG)) {
- Perl_croak(aTHX_ "More than one argument to '%s' open",mode);
+ Perl_croak(aTHX_ "More than one argument to open(,':%s')",tab->name);
}
PerlIO_debug("openn(%s,'%s','%s',%d,%x,%o,%p,%d,%p)\n",
tab->name, layers, mode, fd, imode, perm, f, narg,