Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2015-07-28 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls