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

Re^2: backwards if and while looping

by jcpunk (Friar)
on Oct 01, 2004 at 20:20 UTC ( [id://395752]=note: print w/replies, xml ) Need Help??


in reply to Re: backwards if and while looping
in thread backwards if and while looping

My dumbed down example seems to not be as excellent as I initially thought.....
(!$error) && (print "$data" while ($data = <input>))
is erroring out on me with the print... Is this a fatal flaw in my plan?

jcpunk
all code is tested, and doesn't work so there :p (varient on common PM sig for my own ammusment)

Replies are listed 'Best First'.
Re^3: backwards if and while looping
by BrowserUk (Patriarch) on Oct 01, 2004 at 22:44 UTC
    $error or print $data while $data = <input>;

    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found