Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
XP is just a number
 
PerlMonks  

Re: Do pigs get athlete's foot?

by srawls (Friar)
on Jun 28, 2001 at 22:13 UTC ( [id://92485]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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

Replies are listed 'Best First'.
Re: Re: Do pigs get athlete's foot?
by t'mo (Pilgrim) on Jun 29, 2001 at 02: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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://92485]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.