Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Re: an effective script for grabbing and putting images from or toa website

Reply
Thread Tools

Re: an effective script for grabbing and putting images from or toa website

 
 
Alan Curry
Guest
Posts: n/a
 
      06-17-2012
In article <> ,
Cal Dershowitz <> wrote:
>for my $name (@files) {
> print "name is $name\n";
> my ($ext) = $name =~ /([^.]*)$/;
> for my $image (@list) {
> print "image is $image\n";
> my ($ext2) = $image =~ /([^.]*)$/;
> my @array = grep ( /$ext2/, @list );
> }
>
> print "sub_list is @array\n";
>}


@array only exists within the body of the for loop, because that's where it
was my'ed.

--
Alan Curry
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: an effective script for grabbing and putting images from or to awebsite Martijn Lievaart Perl Misc 17 06-20-2012 05:10 PM
Is it possible to execute Python code from C++ without writing toa file? Roger House Python 1 04-16-2011 12:01 PM
Do I still need those .aspx page if I choose "Merge all outputs toa single assembly" in Web Deployment Project? john sun ASP .Net 2 01-23-2007 10:37 AM
Access Violation error while saving config from PIX through PDM toa TFTP server. AM Cisco 4 10-10-2006 07:59 PM
Difference between putting code in constructor and putting code in static{} Saurabh Java 6 05-30-2004 02:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57