in reply to Re: File reading
in thread File reading

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: File reading
by dsheroh (Monsignor) on Jun 27, 2006 at 15:35 UTC
    If the data is in an array instead of a file, just change
    while (<DATA>) {
    to
    foreach (@array) {
    Everything else can stay the same.