Help for this page

Select Code to Download


  1. or download this
    while (defined(my $line = <STK>)) {  # Avoid loading file into mem.
       chomp($line);                     # Remove trailing newline
       my ($stock) = split(/ /, $line);
       ...
    }
    
  2. or download this
    while (<STK>) {
       chomp;
       my ($stock) = split / /;
       ...
    }