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

Either I'm missing something, or I'm dumb.

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

J. J. Horner
Linux, Perl, Apache, Stronghold, Unix
jhorner@knoxlug.org http://www.knoxlug.org/
  • Comment on RE: RE: strange uninitialized value problem

Replies are listed 'Best First'.
RE:(3) strange uninitialized value problem
by swiftone (Curate) on Jun 02, 2000 at 21:57 UTC
    $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 $_;