Help for this page

Select Code to Download


  1. or download this
    @matches = "hello awesome" =~ /(el).*(om)/;
    print pop @awesome;
    
  2. or download this
    $ perl -we 'print pop ("hello awesome" =~ /(el).*(om)/);'
    Type of arg 1 to pop must be array (not pattern match (m//)) at -e lin
    +e 1, near "/(el).*(om)/)"
    Execution of -e aborted due to compilation errors.
    
  3. or download this
    $ perl -we 'print pop (@matches = "hello awesome" =~ /(el).*(om)/);'
    Type of arg 1 to pop must be array (not list assignment) at -e line 1,
    + near "/(el).*(om)/)"
    Execution of -e aborted due to compilation errors.
    
  4. or download this
    $ perl -we 'print ${["hello awesome" =~ /(el).*(om)/]}[1];'
    om