I have code like this: my @f1 = ($from =~ m{/[^/]+}g); my @f2 = ($to =~ m{/[^/]+}g);
Where ($from, $to)
is also aviable as @_
. How would I make this into one line, and so I don't have to copy pase the reuse expression. IIUC, map
can only return a flat array, or arrayrefs, which you cannot initalise the values with.
submitted by /u/Both_Confidence_4147
[link] [comments]
submitted by /u/briandfoy
[link] [comments]
[link] [comments]
Day 6: How to use PDL::Finance::TA to develop a trading strategy
Using PDL::Finance::TA to develop a trading strategypdl.perl.org
submitted by /u/briandfoy
[link] [comments]
[link] [comments]
Day 5: Using k-means clustering as a ... crayon?
k-means clustering on attributes of electric vehiclespdl.perl.org