Help for this page

Select Code to Download


  1. or download this
    @matches = "hello awesome" =~ /(el).*(om)/;
    print pop @awesome;
    
  2. or download this
    prototype "CORE::pop"; # => ;\@
    
  3. or download this
    print ( ( "hello awesome" =~ /(el).*(om)/ )[-1] );
    
  4. or download this
    Type of arg 1 to pop must be array (not list assignment) at -e line 1,
    + near "/(el).*(om)/)"
    
  5. or download this
    $ perl -e '( my @a = (1) ) = (2); print "@a\n";'
    2