Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Relationship between Chomp() operator and STDIN

by tty1x (Novice)
on Apr 30, 2013 at 04:34 UTC ( #1031312=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl w
    print "Please enter your name\n";
    chomp($name = <STDIN>);
    print "Thank you $name";
    
  2. or download this
    Please enter your name
    aaaThank you aaa[root Shared]#
    
  3. or download this
     
    Please enter your name
    aaa
    Thank you aaa[root Shared]#
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-04-03 12:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (27 votes). Check out past polls.

    Notices?