136

Built-In Functions
Join

  • The join() function returns a string created by concatenating a list of values with a specified separator between each item

      @myList = ( "This", "is", "a", "test" );
      $myString = join( " ", @myList );
      # $myString is now "This is a test"