robert@0: use Card; robert@0: use Storable; robert@0: robert@0: open POKE, ") robert@0: { robert@0: $line =~ m/().*?().*?/; robert@0: robert@0: $img1 = $1; robert@0: $img3 = $2; robert@0: $line =~ m/().*?/; robert@0: $img2 = $1; robert@0: robert@0: robert@0: #Water robert@0: robert@0: #Blastoise robert@0: robert@0: #Rare Holo robert@0: robert@0: robert@0: robert@0: robert@0: $img1 =~ m/alt="(.*?)"/; robert@0: $typeTag = $1; robert@0: robert@0: $img2 =~ m/\(\#(\d+)\)/; robert@0: $numTag = $1; robert@0: $img2 =~ m/href="(.*?)"/; robert@0: $pix = $1; robert@0: $img2 =~ m/>(.*)new(); robert@0: $tempCard->addTags($typeTag,$numTag,$nameTag,$setTag,$rarityTag); robert@0: $tempCard->setPix($pix); robert@0: push @allcards,$tempCard; robert@0: robert@0: robert@0: } robert@0: robert@0: robert@0: robert@0: } robert@0: robert@0: robert@0: store \@allcards, 'CARD.perl'; robert@0: robert@0: robert@0: robert@0: my $refnewstruct = retrieve 'CARD.perl'; robert@0: robert@0: robert@0: print @$refnewstruct[0]->getTags();