develooper Front page | perl.perl6.language | Postings from September 2005

our constant pi, my constant pi?

Thread Next
Ingo Blechschmidt
September 5, 2005 14:59
our constant pi, my constant pi?
Message ID:

quick questions:

    constant pi = 3;      # works
                          # Is &pi package- or lexically-scoped?

    our constant pi = 3;  # legal?

    my  constant pi = 3;  # legal?

This is consistent with "sub foo", "our sub foo", and "my sub foo",
which are all allowed.


Linux, the choice of a GNU | Row, row, row your bits, gently down the
generation on a dual AMD   | stream...
Athlon!                    | 

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About