in reply to Re^2: problem with Unicode::UCD
in thread problem with Unicode::UCD

I haven't looked at the source for Unicode::UCD, but I'm guessing that it's probably doing some file input somewhere. (Not an unreasonable thing.)

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
    Thanks! That's what I'll do now.