# update file if necessary: mirror( $url, 'stations.dat' ); # and then: open my $fh, '<', 'stations.dat' or die "Trouble opening stations.dat - $!"; # LOCK_SH not necessary when using mirror() @data_lines = <$fh>;