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
Having to read this module's documentation from Sub::Exporter's is a pain the back.
Would it be possible to at least expand the SYNOPSIS with more useful examples?
Here's a proposal/starting point, I'm sure you can think additional/better ones:
# import a function with a custom nameuse Sub::Import 'Digest::MD5', md5_hex=> {-as=>'md5sum'};
# import multiple functions, each with its own nameuse Sub::Import 'MIME::Base64',
encode_base64=> {-as=>'e64'},
decode_base64=> {-as=>'d64'};
# Import most functions with the "trig_" prefix, e.g. "trig_log",# "trig_sin", "trig_cos", etc.use Sub::Import 'Math::Trig', -all=> {-prefix=>'trig_'};
# Import PI-related functions with the "_the_great" suffix, e.g.# "pi_the_great", "pi2_the_great", etc.use Sub::Import 'Math::Trig', -pi=> {-suffix=>'_the_great'};
The text was updated successfully, but these errors were encountered:
Having to read this module's documentation from
Sub::Exporter
's is a pain the back.Would it be possible to at least expand the SYNOPSIS with more useful examples?
Here's a proposal/starting point, I'm sure you can think additional/better ones:
The text was updated successfully, but these errors were encountered: