in reply to Capture Lookahead
Like this?
#!/usr/bin/perl use strict; use warnings; my $str = do {local $/; <DATA>}; $str =~ s/\s+//g; my $len = length $str; while (--$len > 780) { printf "%3d : %s\n", $_, substr( $str, $_, $len ) for 1 .. ( length( $str ) - $len ); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Capture Lookahead
by Cristoforo (Curate) on Jul 26, 2005 at 02:57 UTC | |
by fishbot_v2 (Chaplain) on Jul 26, 2005 at 11:46 UTC |