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

Discussion in 'Perl Misc' started by Alan Curry, Jun 17, 2012.

  1. Alan Curry

    Alan Curry Guest

    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
    Alan Curry, Jun 17, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Saurabh
    Replies:
    6
    Views:
    4,496
    Chris Smith
    May 30, 2004
  2. john sun
    Replies:
    2
    Views:
    382
    Tim Mackey
    Jan 23, 2007
  3. Roger House
    Replies:
    1
    Views:
    239
    Anssi Saari
    Apr 16, 2011
  4. Kyle Murphy

    Grabbing Text From a Website

    Kyle Murphy, Aug 21, 2008, in forum: Ruby
    Replies:
    1
    Views:
    89
  5. Martijn Lievaart
    Replies:
    17
    Views:
    727
    Jim Gibson
    Jun 20, 2012
Loading...

Share This Page