On 4/10/06, joseph tacuyan <[EMAIL PROTECTED]> wrote:
> But if i declare the value of $month in hard code it runs without glitch
> but i like to have an input from keyboard. plz enlighten.
> my $month = (<STDIN>);
You're not chomp()ing $month, so it will have a trailing newline
character in the input data.
chomp(my $month = <STDIN>);
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>