Your question isn't very clear. Maybe it would be helpful if you told us what you want to achieve in the end.
If you want to dynamically create variables based on user input, this is usually a very bad idea. Instead of variables $a1, $a2, $a3 you should use an array @a, where you can then access the individual elements easily by an index: $a[0] or $a[$some_number].
Likewise if the name (and not the number) is dynamic, you should consider using a hash instead.
perldata and perlintro will tell you more.
In reply to Re: variables from STDIN
by moritz
in thread variables from STDIN
by stigmatt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |