Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: my $var; vs. use constant VAR = '';

by Rhandom (Curate)
on Apr 27, 2001 at 01:55 UTC ( #75935=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $const = \"Don't touch me!";
    my $num   = \5.6;
    ...
    eval{ $num2 = 3; };
    print $@;
    print "$num2\n";
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
                  CRef   => sub { my $t = $$const_ref },
                  CAlias => sub { my $t = $const_alias },
                });
    
  3. or download this
    mod[3]sub[3]
    my[3]local[3]
    ...
    CMod   1250000/s    29%     3%     0%     --    -1%    -6%
    CAlias 1265823/s    30%     4%     1%     1%     --    -5%
    CMy    1333333/s    37%     9%     7%     7%     5%     --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://75935]
help
Chatterbox?
[Discipulus]: in german even better (you put four cd in line, a bit overlapped): cdaas.com .. das cd
holli writes MonkLinks 2.0
[holli]: Just to have a look what all the fuzz about the new JS features is about
[holli]: tag auch. wir sind ja unter uns :)
[Corion]: Hi holli ;)
[Corion]: In a way, it's sad that Firefox kills off the add-on functionality... But, as n-gate usually writes, "Firefox tries to be more like Chrome"

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-11-20 18:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (291 votes). Check out past polls.

    Notices?