You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's also not thread-safe (see ticket #127987), and its implementation is a real mess of spaghetti code.
I think it's a safe bet that at some point that whole method will be rewritten, and that'll hopefully fix its slowness too.
For now, you can use a closure instead. So for example instead of this:
my &float-to-str = &sprintf.assuming("%f");
...write this:
my &float-to-str = { sprintf "%f", $_ };
In the general case (when you don't know how many and what type of variable parameters will be passed), the following two should behave the same:
Migrated from rt.perl.org#128388 (status was 'open')
Searchable as RT128388$
The text was updated successfully, but these errors were encountered: