Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Input/Output through the Keyboardby Zaxo (Archbishop) |
on Nov 13, 2002 at 02:46 UTC ( [id://212479]=note: print w/replies, xml ) | Need Help?? |
The keyboard input is captured on STDIN:
The print, chomp sequence uses the comma operator to make the two part of a single expression for the modifier. The alternative is do { print... ; chomp ...;} until ...;. After Compline,
In Section
Seekers of Perl Wisdom
|
|