Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Help With Online Table Scraper

by GrandFather (Sage)
on Mar 02, 2011 at 05:52 UTC ( #890915=note: print w/replies, xml ) Need Help??


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

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://890915]
help
Chatterbox?
[stevenlm87]: Needs help. I am taking an online class for perl and is using Padre. How can I get a list from the input in this code? print "What are your favorite hobbies? "; my $hobbies = <STDIN>; chomp $hobbies; print "Your favorite hobbies are '$hobbies'\n";

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2017-02-23 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (351 votes). Check out past polls.