Just leave off the double quotes around "$name" and "$age" — they're useless here anyway.
Interpolating an uninitialized variable into a string produces a warning (when warnings are enabled), while simply testing an unitialized variable for truth (i.e. if ($name) ... ) does not.
In reply to Re^3: How to execute perl script with options using Eclipse IDE?
by Eliya
in thread How to execute perl script with options using Eclipse IDE?
by Divakar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |