Hi,
I'm tying to use the join and map to pipe delimiter a string from an array of hashes, I have the following but I just get an empty string?
@adv has an array of hashes in it.
So i want $adv to end up with the following type value...
What am I doing wrong?
Thanks,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts
I'm tying to use the join and map to pipe delimiter a string from an array of hashes, I have the following but I just get an empty string?
Code:
my $adv = join('|', map{$_->{'ID'}.','.$_->{'FirstName'}.' '.$_->{'LastName'}}@adv );
@adv has an array of hashes in it.
So i want $adv to end up with the following type value...
432,John Smith|567,Jane Doe|983,Paul Jones
What am I doing wrong?
Thanks,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts