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

Re: How can I write this in a "simpler" way?

by Anonymous Monk
on Feb 11, 2014 at 23:22 UTC ( #1074535=note: print w/ replies, xml ) Need Help??


in reply to How can I write this in a "simpler" way?

I just found this:
while(defined $line=<STDIN>) { so something }

Is this the way to go?
Comment on Re: How can I write this in a "simpler" way?
Download Code
Replies are listed 'Best First'.
Re^2: How can I write this in a "simpler" way?
by choroba (Chancellor) on Feb 11, 2014 at 23:37 UTC
    It still uses the <> operator, with STDIN as the operand.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      Yeah, his "problem" is not to use the <> like the general way, <STDIN> is acceptable.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2016-04-29 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.