Rodrigo Tavares schreef: > print "Enter with the fisrst number\n"; > my $num = <STDIN>; > > How I can to convert variable $num, in string ?
$num already contains a string. When you input 1 2 3 <Enter>, it will contain "123\n". With chomp() you can remove the newline, but you can also use int(), see `perldoc -f int`. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/