develooper Front page | perl.beginners | Postings from May 2007

Read data in to Hash

Thread Next
From:
sivasakthi
Date:
May 17, 2007 21:17
Subject:
Read data in to Hash
Message ID:
1179461848.2405.8.camel@sim-co.kovaiteam.com
Hi,

Is it a correct way to read datas in to hash?

use strict;
use warnings;

$userpath = "/tmp/sample.txt";
open FF, "cat $userpath |" || die "can't access log file\n";
while (<FF>)
{
%arrskip{$_}=1;
}
close (FF);


Thanks,
Siva

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About