good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: RFC: List of first day of each monthby choroba (Cardinal) |
on Jan 31, 2020 at 15:28 UTC ( [id://11112184]=note: print w/replies, xml ) | Need Help?? |
Looks good. I'd probably do it the same way. Alternatively, you can implement part of the logic yourself:
Update: You can shorten your original solution. There's no need to parse the date again, just add the days.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Meditations
|
|