Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: m//g behaves strange...

by pg (Canon)
on Nov 10, 2003 at 03:59 UTC ( #305783=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        my $ret = /9/g;
        print "($ret)\n"
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
        my $a = "";
        print "(" . ~$a . ")\n";
    }
    
  3. or download this
    (4294967295)
    (4294967294)
    ()
    
  4. or download this
    use strict;
    use warnings;
    ...
        my $ret;
        print ~ m/9/, "\n";
    }
    
  5. or download this
    4294967294
    4294967295
    
  6. or download this
    use strict;
    use warnings;
    ...
        print ~ ($ret = m/9/), "\n";
        print "($ret)\n";
    }
    
  7. or download this
    4294967294
    (1)
    4294967295
    ()
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2021-08-04 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (41 votes). Check out past polls.

    Notices?