Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re2: Perl Bug in Regex Code Block?

by Hofmator (Curate)
on Sep 03, 2001 at 17:32 UTC ( #109865=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Name "main::counts" used only once: possible typo at ./re-code.pl line
    + 20.
    0: 12; @counts = (0)
    1: 34; @counts = (0)
    2: 56; @counts = (0)
    @main::counts = (6)
    
  2. or download this
    {
      my $num = 0;
      $main::num = 5; # this instead of the regex
    ...
    
    # or under use strict
    print $main::num; # prints 5 as well
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://109865]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2019-05-23 01:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (140 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!