Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: Help With Online Table Scraper

by Anonymous Monk
on Mar 02, 2011 at 05:27 UTC ( #890909=note: print w/ replies, xml ) Need Help??

in reply to Re: Help With Online Table Scraper
in thread Help With Online Table Scraper

! defined and $_ = ' ' for @$row;
You maybe mean ! defined and  $_ != ' ' for @$row;   ?

Comment on Re^2: Help With Online Table Scraper
Select or Download Code
Replies are listed 'Best First'.
Re^3: Help With Online Table Scraper
by GrandFather (Sage) on Mar 02, 2011 at 05:52 UTC

    No. That wouldn't make any sense at all!

    Perhaps I should have gone with my second instinct and written that line as:

    for my $cell (@$row) { if (! defined $cell) { $cell = ' '; } }

    I didn't because the fairly trivial task of setting undefined cells to a space becomes the dominant code in the sample. I'd hoped that the line would be pretty much ignored, but in retrospect that was pretty silly really.

    True laziness is hard work

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://890909]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2016-02-09 14:37 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (316 votes), past polls