Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: big job, starting with little script

by muba (Priest)
on Jul 15, 2010 at 08:02 UTC ( #849724=note: print w/ replies, xml ) Need Help??


in reply to big job, starting with little script

Try to find out where you put the line after reading from the file. Is it in $line (as $line = <FILE>) would suggest?

Or is it in $_, where you seem to think it is, judging by your use of chomp with no further arguments and thusly implying chomp $_.

And even more explicitely in the part where you try to print "$map($_)";

That print statement brings us to another point - you're using parens here, not accolades, or curly braces. Keep an eye out for that kind of typo :)

The interesting thing is that neither answer is true, as has been pointed out above me, due to you slurping in the entire file before the while loop.

But I'd like to point out something else as well. I don't mean to discourage you but I think your approach deserves some further thought. Tomato: fruit or veggie?


Comment on Re: big job, starting with little script
Select or Download Code
Re^2: big job, starting with little script
by fullermd (Curate) on Jul 15, 2010 at 16:43 UTC
    But I'd like to point out something else as well. I don't mean to discourage you but I think your approach deserves some further thought. Tomato: fruit or veggie?

    Well, fruit, obviously. To a biologist, anyway. But then, so are zucchini and eggplant, right?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-12-22 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls