Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Need help with a simple perl script

by uday_sagar (Scribe)
on May 24, 2012 at 11:41 UTC ( #972224=note: print w/replies, xml ) Need Help??


in reply to Re^2: Need help with a simple perl script
in thread Need help with a simple perl script

Okay, I agree with $". Thanks

For the while loop, as "print" is not contained in while, it ll take the inputs all the time without printing anything.

  • Comment on Re^3: Need help with a simple perl script

Replies are listed 'Best First'.
Re^4: Need help with a simple perl script
by choroba (Cardinal) on May 24, 2012 at 11:56 UTC
    For the while loop, as "print" is not contained in while, it ll take the inputs all the time without printing anything.
    Not really. "print" is in a for loop, and it prints the output as desired, because the for loop uses the implicit variable $_.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2023-03-22 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?