in reply to Converting a Flat-File to a Hash
no Tie suggestions ? :-)
Mickey
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;
Mickey
In Section
Seekers of Perl Wisdom