in reply to Recover Excel data from cells with Foreach loop
This ignores the spreadsheet and just gets 0 to 9
foreach my $data (0..9){ $driver->get($data);
Try
poj#!/usr/bin/perl use strict; use Spreadsheet::Read; my $excel = ReadData("TEST.csv"); my $row = 1; my $url = $excel->[1]{'A'.$row}; while ($url){ # do something with url process($url); ++$row; $url = $excel->[1]{'A'.$row}; } sub process { my ($url) = @_; print "Processing $url\n"; # selenium code etc }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Recover Excel data from cells with Foreach loop
by Perlchaoui (Sexton) on Nov 10, 2018 at 20:57 UTC | |
by poj (Abbot) on Nov 10, 2018 at 21:46 UTC | |
by Perlchaoui (Sexton) on Nov 10, 2018 at 22:33 UTC | |
by 1nickt (Canon) on Nov 10, 2018 at 23:37 UTC | |
by Perlchaoui (Sexton) on Nov 11, 2018 at 18:06 UTC | |
|