perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin A. Langhoff" <>
Subject Variable declaration / scope
Date Fri, 02 Jun 2000 11:47:10 GMT
hi list,

    I've been developing with Embperl for a few months now, and I've
already RTFM a few times, but still some issues remain obscure to me. So
here it is: Why can't I declare a lexical variable inside a [- -] block?
[- my $foo -] will make Embperl cry loud if $foo was not declared as a

    And if I change $foo with %foo in the previous example, it seems
that declaring [- my $foo -]  when it already is a global wipes %foo's
contents clean when the [- -] block is over.

    I can, of course, declare [! my $foo !] and get it to work, but
that's another issue...

--                                                         --
To understand recursion, one must first understand recursion.
--                                                         --
    - Martin Langhoff @ S C I M  Multimedia Technology -
      -      | God is real until  -
      -  | declared integer   -

View raw message