Reading a File via Perl Script

Reading with <> into an array: gets lines into array as is in file along with new line chars. each $line_$i in file = $arr[$i]

Reading with <> into hash : sets $has{$key} = $value. where $key = line_$i and $value = line_$i+1 respectively.

<

p>Reading with <> using while loop: gets each line along with "n" chars

Leave a Reply

Your email address will not be published. Required fields are marked *