[cgiapp] size of scripts and dependencies

Ron Savage ron at savage.net.au
Sat Sep 19 18:49:38 EDT 2009


Hi Richard

On Sat, 2009-09-19 at 13:11 +0100, Richard Jones wrote:
> Yep, though I didn't claim mine was either (just personal preferences at 
> work here, and the temptation to hack to see what can be done), and the 
> use of IO::All in place of manual file handling.

Nothing wrong with personal preferences, especially if they're
mine :-)).

> And this also works for me:
> 
> $lines += grep { s/^\s+|\s+$//; $_ !~ /^[{}]?$|^#/; } io($_)->chomp->slurp;

Errr. What happens with a line which has /both/ leading and trailing
spaces?

-- 
Ron Savage
ron at savage.net.au
http://savage.net.au/index.html




More information about the cgiapp mailing list