http://qs321.pair.com?node_id=547417


in reply to "Err:Use of uninitialized value in string eq" while using split

What's on line 427 of B.out? Maybe something without whitespace (or the end of the file...)?

By the way, split magically ignores leading whitespace and splits on subsequent white spaces if you leave off the pattern or give it a literal space...
@temp1 = split / /, $line1;
  • Comment on Re: "Err:Use of uninitialized value in string eq" while using split
  • Download Code

Replies are listed 'Best First'.
Re^2: "Err:Use of uninitialized value in string eq" while using split
by cool (Scribe) on May 04, 2006 at 15:13 UTC
    But it is not recognizing leading white spaces just by
    @temp1=split / /,$line1;
    Thats y I hit with
    @temp1=split / +/,$line1;