in reply to RE: RE: strange uninitialized value problem
in thread strange uninitialized value problem

$log = "something", do_split($log) should have a string, right?

Right, but that string is in $_[0] not $_.
Try putting:

shift;
as the first line of your sub. That will pop $_[0] into $_;