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 / /; ... }
In reply to Re: How to call curl to make a Get request with parameters from perl ?
by ikegami
in thread How to call curl to make a Get request with parameters from perl ?
by perl0101
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |