in reply to How to call curl to make a Get request with parameters from perl ?
while (defined(my $line = <STK>)) { # Avoid loading file into mem. chomp($line); # Remove trailing newline my ($stock) = split(/ /, $line); ... }
Or shorter:
while (<STK>) { chomp; my ($stock) = split / /; ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to call curl to make a Get request with parameters from perl ?
by perl0101 (Initiate) on May 19, 2009 at 01:15 UTC |