in reply to Re^4: uninitialized split value
in thread uninitialized split value
The most common cause of undefined in split is due to a blank line at the end of the file. Either remove that blank line or add something like: next if (/^\s*$/); to the code to skip blank lines. The split will of course fail if there is nothing to split!