in reply to Re^2: Hashes and String Variables
in thread Arrays and Strings in Hashes
I tried the following. Can you tell me what I am doing wrong here? Thank You.
my @files = qw( http://use.perl.org/ http://search.cpan.org/ http://jobs.perl.org/ ); my @hash = ( url => '', curArray => [], prevArray => [], ); foreach my $url2 ( @files ) { #push (@hash{url}, $url2); $hash{url} = $url2; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Hashes and String Variables
by toolic (Bishop) on Jun 14, 2010 at 02:10 UTC | |
by mr_p (Scribe) on Jun 14, 2010 at 14:01 UTC |