Difference between $var = <FH> and $_ in Perl

Viewed 1821

Recently I came across something like this in a certain perl script:

while(<FH>){
    $var1 = <FH>; $var2 = $_
}

Since the diamond operator with file handle name inside works the same way as readline(FH); may I know are there any special meaning in writing like this?

Thanks a lot

1 Answers
Related