in reply to Arrays - Getting a single column from more than one row
I would actually suggest putting all of info in a database and then using DBI to get the info out. It's much easier to manage that way and you can easily specify which field you want with just a few lines of code.my @emails = ({"id" => "1", "name" => "Foo", "email" => "me\@foo.com"} +, {"id"=>"2", "name" => "Bar", "email" => "bar\@foo.com"} ); foreach (@emails) { print $_->{"email"}; }
|
|---|