Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 wandering the Monastery: (8)
As of 2014-08-23 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls