in reply to Weird error !

because under use strict you must declare $elem with my as you have done with my $driver

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Weird error !
by Chaoui05 (Scribe) on Apr 19, 2016 at 12:28 UTC
    Thanks Discipulus but i don't understand how can i do it cause in an other file , almost the same, it's ok!

      For stupid computers, "almost the same" is not the same as "the same".


      Give a man a fish:  <%-{-{-{-<

        i found thx ! It was pragma use strict i had to use with "my"