in reply to Re^3: Loop through array or filehandle
in thread Loop through array or filehandle
Interestingly, data from an HTTP::Request, when split by \n into an array, only loops to the first empty line and then the while loop stops. If the data from the request is written to a file then the while loop works as expected.
The only work around I can find at the moment is to
$data =~ s/^$/ /gsmNot ideal, but better than working out why an empty line from an HTTP::Request GET signals a termination of a while() loop.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Loop through array or filehandle
by Laurent_R (Canon) on Sep 30, 2016 at 16:57 UTC | |
|
Re^5: Loop through array or filehandle
by AnomalousMonk (Archbishop) on Sep 30, 2016 at 17:34 UTC | |
by Laurent_R (Canon) on Sep 30, 2016 at 22:13 UTC |