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

our constant pi, my constant pi?

Thread Next
From:
Ingo Blechschmidt
Date:
September 5, 2005 14:59
Subject:
our constant pi, my constant pi?
Message ID:
dfieud$3ln$1@sea.gmane.org
Hi,

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.


--Ingo

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


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About