- or download this
sub test {
local $\="NEWLINE" if 1;
...
}
print "text:";
}
- or download this
# This works.
my @ary;
...
my (@ary);
@ary = split (" ",$str) while (my $str=<DATA>);
print join(" / ", @ary);
- or download this
my @words = map { split " ",$_ } <DATA>;
print "@words\n";
- or download this
$/=" ";
my @words=<DATA>;