
7stud
Enthusiast
Mar 25, 2010, 3:16 AM
Post #2 of 2
(1387 views)
|
|
Re: [200120022003] Dymanic Variable with Perl
[In reply to]
|
Can't Post
|
|
use strict; use warnings; use 5.010; my %info_for = ( tom => ['ibm', 'abc@xxx'], betty => ['google', 'xyz@xxx'], ); my $name = 'tom'; say "@{$info_for{$name}}"; --output:-- ibm abc@xxx
(This post was edited by 7stud on Mar 25, 2010, 3:18 AM)
|