in reply to Re^2: how to assign hash element value to scalar?
in thread how to assign hash element value to scalar?

    when i add 'use strict' it is not very pretty, some of the code outside the subroutine give errors.

You don't really believe that by not adding 'use strict' it means the errors magically go away, do you? :-)


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
  • Comment on Re^3: how to assign hash element value to scalar?

Replies are listed 'Best First'.
Re^4: how to assign hash element value to scalar?
by jugdish114 (Initiate) on Nov 14, 2006 at 22:05 UTC
    Ok, Ok, Liverpole wins, it was his gently embarassing remarks that got me to clean up the error when 'use strict' was added back in the code. Once I worked through all the global and local referencing, the code behaved pretty well. So my syntax was correct, it seems that Perl was getting confused somewhere because of lack of variable definition.

    Looks good, thanks again
    fc