Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: TIMTOWTDI Challenge: Create a filenameby fullermd (Priest) |
on Jan 09, 2009 at 02:32 UTC ( [id://735057]=note: print w/replies, xml ) | Need Help?? |
Hey!
Portability counts! You should make it more robust. Maybe with env...
Of course, that's slower at runtime. Extra forks and all. Maybe precalculate it...
But really, sh is pretty weak. And we've already got perl anyway, right? So why not use it to its fullest incapacity?
Of course, that's getting pretty silly. And tedious. Obviously a little metaprogramming is called for to generate those expressions...
In Section
Meditations
|
|