Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Do pigs get athlete's foot?

by srawls (Friar)
on Jun 29, 2001 at 02:13 UTC ( #92485=note: print w/ replies, xml ) Need Help??


in reply to Do pigs get athlete's foot?

um... Did you test this? You might want to check the return value of chomp. If you don't want the newline you can do this:

/(.*)/
but why even bother, just change that last print to
print @toes
Then you don't have to take off those new lines in your map statement.

The 15 year old, freshman programmer,
Stephen Rawls


Comment on Re: Do pigs get athlete's foot?
Select or Download Code
Re: Re: Do pigs get athlete's foot?
by t'mo (Pilgrim) on Jun 29, 2001 at 06:45 UTC

    "Did you test this?" Test 'poetry'? No. But after you pointed it out, I did and see what you mean. Note the revised edition:

    ... my @toes = map "This little piggy " . $_, <DATA>; print @toes; ...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-07-29 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls