because under use strict you must declare $elem with my as you have done with my $driver
L*
In reply to Re: Weird error ! by Discipulus in thread Weird error ! by Chaoui05