You actually have to replace <STDIN> with a file handle, not a filename.
I believe the original poster replaced the input with a hard-coded value; that is, wrote $basename = 'filename'. A filehandle would be an error, probably.
In reply to Re^2: adding a variable definition to execution
by akho
in thread adding a variable definition to execution
by roberree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |