Help for this page

Select Code to Download


  1. or download this
    m/.../ returns true or false in scalar context 
    m/.../g give you a list of matches in list context 
    m/(...)/ can populate an array with whatever gets captured... (??)
    ...
    foreach( ) i.e. inside parenthesis is evaluated in list context?
     
    <STDIN> returns the next line of input in list context
    
  2. or download this
      DB<23> $_="aaa"
     
      DB<24> print scalar m/a/
    1
    
  3. or download this
     perl -e 'print prototype "CORE::push","\n"'
    \@@