I suspect you want
Notice the change in quotes, inside double quotes $id will try to interpolate, and it is undefinedif (not defined $id) { print '$id is not defined';
In reply to Re^3: Make command line argument optional
by huck
in thread Make command line argument optional
by TonyNY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |