Are you sure you want to put data files in to /usr/bin? See http://www.linfo.org/usr_bin.html. Consider running this script in your home directory (or a sensibly named sub directory of your home directory).
As you've discovered you can't create files in directory in which you don't have permissions without using sudo, so unless you run your perl script in the same manner, this isn't going to work. I advise against creating these files in /usr/bin anyway. Please consider my suggestion above.
In reply to Re^5: syntax error near print
by marto
in thread syntax error near print
by mariannapac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |