my @contents; &open_file(myfile.txt); sub open_file { open(FILE, "$_[0]") || die "could not open FILE $_[0]: $!"; @contents = <FILE>; close(FILE); }
In reply to Re: Modular Code
by Stamp_Guy
in thread Modular Code
by Stamp_Guy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |