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 }
In reply to Re: Recover Excel data from cells with Foreach loop
by poj
in thread Recover Excel data from cells with Foreach loop
by Perlchaoui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |