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... (??)
    
  2. or download this
    while( )   i.e. inside parenthesis is evaluated in scalar context?
    foreach( )   i.e. inside parenthesis is evaluated in list context?
    
  3. or download this
    <STDIN>   returns the next line of input in list context