Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: split string using optimized code or perl one liner

by davido (Cardinal)
on Feb 23, 2017 at 22:56 UTC ( [id://1182675] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # -2 strokes:
    echo www.perlmonks.org.split.reduce.code.check |perl -lF'(\.)' -E'say 
    +reverse@F'
    # Compare to:
    echo www.perlmonks.org.split.reduce.code.check |perl -lnE'say reverse 
    +split/(\.)/'