Re: How would I set up a hash for the following

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

On May 20, 9:52 am, wrote:
Quoted text here. Click to load it


What you probably want to do is hash the product ids ... something

use Data::Dumper;
my %ids
for ($get_links->links) {
    my $url = pop @$_;
    my ($id) = $url =~ /product_id=(\d+)/;
    ++$ids if $id;

print Dumper \%ids;

Site Timeline