http://www.perlmonks.org?node_id=914172


in reply to global match except last one

It does not work with
# perl -le '$str='Camelcase'; $str =~ s/(?<=[a-z])(?=[A-Z])/_/g; print + $str;' Camelcase

Replies are listed 'Best First'.
Re^2: global match except last one
by 7stud (Deacon) on Jul 13, 2011 at 23:02 UTC
    Well, just because you write the word 'camlecase' does not mean it's in camel case format.