Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Puzzlement in Splitsville (/g modifier)

by demerphq (Chancellor)
on Jun 20, 2005 at 11:53 UTC ( [id://468283]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    D:\>perl -le "print $1 while 'aaabbcddddaee'=~/((.)\2*)/gs"
    aaa
    ...
    dddd
    a
    ee
    
  2. or download this
    D:\>perl -le "print for unpack '(a3)*','atgactaatagcagtgg'";
    atg
    ...
    agc
    agt
    gg
    
  3. or download this
    my @filtered=do { my $i=1; grep $i++ % $N,@unfiltered};
    

Log In?
Username:
Password:

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

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

    No recent polls found