Hi!
I'm using perl and win32:le module to extract information from an excel archive. I'm having problems with the sintaxis, I think. What my program is intended to do is search for a string and returning its position. This is the code:
while (!$i){
$valor = $Sheet->Range("A1:G500")->Find({What=>"$_[0]",After=>"A1"})->{Row};
$col = $Sheet->Range("A1:G500")->Find({What=>"$_[0]",After=>"A1"})->{Column};
$row = $valor;
$valor = $Sheet->Cells($row,$col)->{'Value'};
$i="TRUE" if ($valor=~/$_[0]$/);
}
}
This code doesn't work, and the error is on the second line. I've tried with Cell($row,$col) and it doesn't work either. I want the "A1" to be dynamic, that's the point of this.
If anyone knows about this, please give me some advise.
Bye. Sorry for my english, i'm not very good on that.
I'm using perl and win32:le module to extract information from an excel archive. I'm having problems with the sintaxis, I think. What my program is intended to do is search for a string and returning its position. This is the code:
while (!$i){
$valor = $Sheet->Range("A1:G500")->Find({What=>"$_[0]",After=>"A1"})->{Row};
$col = $Sheet->Range("A1:G500")->Find({What=>"$_[0]",After=>"A1"})->{Column};
$row = $valor;
$valor = $Sheet->Cells($row,$col)->{'Value'};
$i="TRUE" if ($valor=~/$_[0]$/);
}
}
This code doesn't work, and the error is on the second line. I've tried with Cell($row,$col) and it doesn't work either. I want the "A1" to be dynamic, that's the point of this.
If anyone knows about this, please give me some advise.
Bye. Sorry for my english, i'm not very good on that.