Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: substr in nested foreach loop

by Gilimanjaro (Hermit)
on May 22, 2006 at 15:19 UTC ( #550950=note: print w/replies, xml ) Need Help??


in reply to substr in nested foreach loop

How often are you getting the warning?

Beware, that if that last input line of your file ends in a newline, you'll probably get an empty string ('') as your last line from perl...

Replies are listed 'Best First'.
Re^2: substr in nested foreach loop
by sarani (Sexton) on May 23, 2006 at 03:35 UTC
    I'm getting the warning for the last input line from the file, and I'm getting it the number of lines there are in the outer loop file ... :D That might be it...
      Glad to be of help... ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://550950]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2017-06-26 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (572 votes). Check out past polls.