and what is $fh_out? $fh_in is the text file it is reading right?
Yes, except that these are "file handles" rather than the actual file in any sense, (hence the naming convention "fh").
Does that make sense? If you do a close $fh_out; the file doesn't go away, just perl's ability to write to the file via that particular handle.
In reply to Re^3: split a file to several smaller file
by doom
in thread split a file to several smaller file
by sardines
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |