perl -e "print length,qq(\n) for split /1/,'1000000000000100000000000000100';" #### #!/usr/bin/perl -w use strict; while () { my @bits = split /1/; # every string starts with a 1, so # pop the first zero off of @bits pop @bits; print join( ",", @bits ), "\n"; }; __DATA__ 1000000000000100000000000000100 #### perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web