Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: More comprehensive style guide for Perl docs than perlpodstyle?

by soonix (Abbot)
on Jan 07, 2019 at 10:25 UTC ( #1228135=note: print w/replies, xml ) Need Help??


in reply to Re^3: More comprehensive style guide for Perl docs than perlpodstyle?
in thread More comprehensive style guide for Perl docs than perlpodstyle?

This one is easier to remember if you know of languages with functions like LEFT, RIGHT, and MID (or MIDSTR).
And substr is the equivalent of MID, while you obviously see it as LEFT …
# untested, as usual :-) and without the "replace" functionality sub midstr { return substr(shift, shift, shift); } sub leftstr { return substr(shift, 0, shift); } sub rightstr { return substr(shift, -shift); }
  • Comment on Re^4: More comprehensive style guide for Perl docs than perlpodstyle?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1228135]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2019-05-26 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (153 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!