Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by socketdave (Curate)
on May 04, 2006 at 14:08 UTC ( [id://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

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;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found