ok, here's one:
Enjoy,#!/usr/bin/perl use strict; use warnings; use Tie::File; tie my @array, 'Tie::File', "/the/file/in/question" or die "can't tie +file"; my %data = map { split /:/; $_[0] => $_[1] } @array;
In reply to Re: Converting a Flat-File to a Hash
by mickeyn
in thread Converting a Flat-File to a Hash
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |