http://www.perlmonks.org?node_id=1010726


in reply to JAPH Made Entirely of Colons

not to hard after properly formatting the white space. most confusing thing was the second to last regex.


solution:
#!/usr/bin/perl $_ = '!'; sub preRegex{ s//@_/; } preRegex(':::::::::::', ':' x 10); s. ::::::::.::\.::::\.' '\.:: \.:: \.::.gex; chomp $_; print $_;