Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How to convert $names as hash map and assign the values to it#!/usr/bin/perl use strict; use warnings; my $names; while(<DATA>){ if(/{(.*)}/){ $names = $1; } } __DATA__ {NAME} {AGE} {SEX} {ADDRESS}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Assign value
by ikegami (Patriarch) on Nov 04, 2009 at 15:38 UTC | |
|
Re: Assign value
by bichonfrise74 (Vicar) on Nov 04, 2009 at 16:33 UTC | |
by AnomalousMonk (Archbishop) on Nov 04, 2009 at 17:20 UTC | |
by bichonfrise74 (Vicar) on Nov 04, 2009 at 20:41 UTC | |
by Anonymous Monk on Nov 05, 2009 at 04:28 UTC |