Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: given/when one case prefixes another

by ww (Archbishop)
on Apr 26, 2011 at 12:49 UTC ( [id://901340]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    say "\n Final \$count of 'x' in given/when matching 'x': $count";
    
    say "\n $foo";
    
  2. or download this
    First, with a simple substitution '/g'
     $foo: X o y y o y Z;
     $simplecount: 2 (i.e., 'x's changed)
    ...
     Final $count of 'x' in given/when matching 'x': 1
    
     X x y y x y Z
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-19 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found