5 substr( $foo, 2, 1 ) = 'XYZ';
7 #-----------------------------------------------------------------------------
13 substr $foo, 2, 1, 'XYZ';
15 #-----------------------------------------------------------------------------
21 $bar = substr( $foo, 2, 1 );
23 #-----------------------------------------------------------------------------
29 %bar = ( foobar => substr( $foo, 2, 1 ) );
31 #-----------------------------------------------------------------------------
33 ## name substr as word
39 #-----------------------------------------------------------------------------
41 ##############################################################################
42 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/BuiltinFunctions/ProhibitLvalueSubstr.run $
43 # $Date: 2008-03-16 17:40:45 -0500 (Sun, 16 Mar 2008) $
44 # $Author: clonezone $
46 ##############################################################################
50 # cperl-indent-level: 4
52 # indent-tabs-mode: nil
53 # c-indentation-style: bsd
55 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :