Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Regex shows only last match multiple times?

by zeltus (Beadle)
on Feb 13, 2014 at 10:17 UTC ( #1074778=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @array = <$fh>;  # Reads all lines into array
    $singleLine = <$fh>; # reads one line only
    
  2. or download this
    my @count = $w =~ /$x/g;
    my $total = @count;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2022-01-20 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (56 votes). Check out past polls.

    Notices?