As perl can automatically transform string to integer.#!/usr/bin/perl my @list=(qw/zero one two three four five six seven eight nine/); print "give the input:"; my $in=<STDIN>; print "$list[$in]\n";
In reply to Re: Sub Routine Malfunction
by llancet
in thread Sub Routine Malfunction
by koolgirl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |