mg_get(sv);
if (SvROK(sv)) {
if (type == OP_RCATLINE)
- SvPV_force_nolen(sv);
+ SvPV_force_nomg_nolen(sv);
else
sv_unref(sv);
}
else if (isGV_with_GP(sv)) {
- SvPV_force_nolen(sv);
+ SvPV_force_nomg_nolen(sv);
}
SvUPGRADE(sv, SVt_PV);
tmplen = SvLEN(sv); /* remember if already alloced */
offset = 0;
if (type == OP_RCATLINE && SvOK(sv)) {
if (!SvPOK(sv)) {
- SvPV_force_nolen(sv);
+ SvPV_force_nomg_nolen(sv);
}
offset = SvCUR(sv);
}
chdir 't' if -d 't';
@INC = '../lib';
require './test.pl';
- plan (tests => 295);
+ plan (tests => 298);
}
use strict;
# Readline/glob
tie my $var0, "main", \*DATA;
$dummy = <$var0> ; check_count '<readline>';
+$var = \1;
+$var .= <DATA> ; check_count '$tiedref .= <rcatline>';
+$var = "tied";
+$var .= <DATA> ; check_count '$tiedstr .= <rcatline>';
+$var = *foo;
+$var .= <DATA> ; check_count '$tiedglob .= <rcatline>';
$dummy = <${var}> ; check_count '<glob>';
# File operators