hope this helps#!/usr/bin/perl -w use strict; open FILE, "DATA.DAT" or die $!; my $scalar; { local $/=undef; # slurp mode on $scalar=<FILE>; } print $scalar;
In reply to Re: slurping into scalars
by thinker
in thread slurping into scalars
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |