in reply to New Perl programmer looking for answer in Directory Comparisons
To fix it, I'd probably do something like this:foreach $filename1 (@sourcesorted) { %hashsource = ($filename1,$filename1); }
That does what you intend, by assigning a list of keys to a list of values.my %hashsource; @hashsource{@sourcesorted} = @sourcesorted;
There are other things to correct in the code, but that will fix the issue you described.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: New Perl programmer looking for answer in Directory Comparisons
by ATaylor (Initiate) on May 01, 2001 at 19:56 UTC |