I only want to print $row->[7]->as_text if such a cell exists in the table. I tried exists to check for this, but that does not work. How could I make that if statement work?$agent->get($url); $page = $agent->content; $te = new HTML::TableExtract(); $te->parse ($page); @ts = $te->table_states; $ts = $ts[3]; #4th table on the page @table = $ts->rows; for $row ( @table[1..$#table] ) { if ( exists $row->[7] ) { print $row->[7]->as_text; } }
In reply to How to check if an array element reference exists or not by corpx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |