Looks like you have a DOS file on a unix system. Replacing
chomp $FN_SPLIT;
with
$FN_SPLIT =~ s//\r?\n\z/;
will handle both DOS and unix files on a unix system.
In reply to Re^7: How to pass a variable to a subroutine
by ikegami
in thread How to pass a variable to a subroutine
by learningperl01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |