Mega Code Archive

 
Categories / Perl / String
 

Quote Operators

Operator      Meaning                Result                                 Example q             Single quote           Noninterpolated string                 print q|The variable $name equals|; qq            Double quote           Interpolated string                    print qq#<input type="TEXT" name="NAME">#; qx            Back quote             Interpolated command string            $dList = qx%dir $listType%; qw            Quoted string          Noninterpolated string                 @familyNames = qw(Tom, Sherry, Steven, Jessica);