in reply to Re^2: problem with Unicode::UCD
in thread problem with Unicode::UCD
That's one good reason why slurp mode should really be done like this, especially in code that uses modules, to make sure that undef'ing $/ is localized to just the code block where this is needed:
my $filedata; open( IN, '<', $filename ) or die "whatever. $!"; { local $/; $filedata = <IN>; } close IN;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: problem with Unicode::UCD
by holli (Abbot) on May 20, 2005 at 05:07 UTC | |
|
Re^4: problem with Unicode::UCD
by rubenstein (Novice) on May 20, 2005 at 16:01 UTC |