in reply to Re: split a file to several smaller file
in thread split a file to several smaller file

Slight typo, should be $! instead of $1 (<shift> key):
or die("Unable to create \"$fname\": $!\n");