in reply to problem with creating constants from scalar

use happens at compile time. Your $test hasn't been assigned a value yet. Wrap it in a BEGIN { } block and it will work.

Replies are listed 'Best First'.
Re^2: problem with creating constants from scalar
by needperlhelp (Acolyte) on Aug 30, 2006 at 03:53 UTC
    Perfect , many thanks for the help