I call it like this:sub writeFile { open(FILE, ">$_[0]") || return ($!); print FILE "$_[1]"; close(FILE); return 0; }
&writeFile("file.txt", @file);
Any help would be greatly appreciated!
Stamp_Guy
In reply to Passing variables by Stamp_Guy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |