Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by socketdave (Curate)
on May 04, 2006 at 14:08 UTC ( #547417=note: print w/ replies, xml ) Need Help??


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
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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://547417]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-08-29 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (280 votes), past polls