in reply to $/ question

All these techniques for reading one character at a time will work, but may be slow. You may be better reading in a large block of characters at a time and stripping them off one-at-a-time.

Replies are listed 'Best First'.
RE: Re: $/ question
by BigJoe (Curate) on Jul 06, 2000 at 02:44 UTC
    Just to give a little code to show what lhoward is saying
    my $length = 1000; read (FILEHANDLE, my $varWithChar, $length); my @array = split //, $varWithChar; foreach (@array){ #do stuff with $_ }


    --BigJoe