Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: JAPH Made Entirely of Colons

by Anonymous Monk
on Dec 28, 2012 at 18:26 UTC ( #1010726=note: print w/replies, xml ) Need Help??


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 $_;