Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Problem when - use strict and -w

by GertMT (Friar)
on Jul 14, 2009 at 21:14 UTC ( #780077=note: print w/ replies, xml ) Need Help??

in reply to Re: Problem when - use strict and -w
in thread Problem when - use strict and -w

Thank you both for your prompt reply.
I had been staring at the code for a while but didn't see the typo in my code. Seemed that in the real code an empty last line of the data.txt also gave some problem. I'll find my way out of that (tomorrow, as it's too late here by now)
And yes, I'll continue to use strict and warnings!
Thanks again.

Comment on Re^2: Problem when - use strict and -w
Replies are listed 'Best First'.
Re^3: Problem when - use strict and -w
by toolic (Bishop) on Jul 14, 2009 at 21:30 UTC
    As an aside, you could reduce the amount of typing by using qq in your print:
    print "Olah:\t", $number++, qq(\t$row->[2] "$row->[5]"\t"$row->[3]$row->[0]" $row->[4]\n);

    I'm not sure if it's any prettier, but it is easier to type than all those commas and quotes and back-whacked quotes.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2016-02-11 11:52 GMT
Find Nodes?
    Voting Booth?

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

    Results (368 votes), past polls