in reply to Re: can't read URL from tab delim
in thread can't read URL from tab delim

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: can't read URL from tab delim
by shmem (Chancellor) on Apr 17, 2007 at 17:04 UTC
    Anyways, with
    sysopen: Invalid argument at read_tab_delim.pl line 17

    the relevant part goes from line 1 to line 17, right? If you condense your code for posting, be sure to run it again for the sake of consistency between errors and code. It helps a lot in helping you *not* being sent off chasing bugs at wrong addresses...

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
Re^3: can't read URL from tab delim
by Fletch (Bishop) on Apr 17, 2007 at 17:45 UTC
    1 my @file; 2 my $count; 3 open (FILE,"ReviewUpdatesMarch2007.txt"); 4 @file = <FILE>; 5 close FILE; 6 foreach my $item (@file) 7 { 8 my($owner,$new_date,$url) = split(/\t/,$item); 9 print $url; 10 my $slurp = read_file("$url"); 11 }

    11 != 17. It's encouraged to condense to a small snippet which exhibits the behavior, but if you do so make sure you give the error messages from that condensed version.