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

Re: Strange regex behavior

by Tanktalus (Canon)
on Aug 14, 2005 at 21:46 UTC ( [id://483730]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -e '$/=undef;$t=<>;foreach(3815,3975,3871){$i=index($t,"ID=$_")
    +;printf"ID=$_:%d(chunk=%d,offset=%d)\n",$i,int($i/1024),$i%1024}' Alp
    +habeticalListing.asp
    ID=3815:103836(chunk=101,offset=412)
    ID=3975:104688(chunk=102,offset=240)
    ID=3871:105271(chunk=102,offset=823)
    
  2. or download this
    while (1) {
        my $buf;
    ...
        last unless $n;
        push @listing, $buf =~ /ID=(\d+)/g;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-24 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found