in reply to Re: Re: character class problem
in thread character class problem

I am not sure what you are trying to achieve here. Do you want to read the entire file into a single string? If so, try the following:

use IO::File; use strict; my $f = new IO::File "data", "r" or die "can not open file"; my $data; { local $/; $data = <$f>; } # at here, $data is your entire data file with embedded \n.