join() function in Perl combines the elements of LIST into a single string using the value of VAR to separate each element. It is effectively the opposite of split.
Note that VAR is only placed between pairs of elements in the LIST; it will not be placed either before the first element or after the last element of the string. Supply an empty string rather than undef, to join together strings without a separator.
Syntax: join(VAR, LIST)
- VAR : Separator to be placed between list elements.
- LIST : LIST to be converted into String.
Return: Returns the joined string
Joined String is Geeks-for-Geeks Joined String is GeeksforGeeks
Joined String is Geeks~for~Geeks Joined String is Geeks***for***Geeks
- Perl | tell() Function
- Perl | sin() Function
- Perl | cos() Function
- Perl | ord() Function
- Perl | uc() Function
- Perl | abs() function
- Perl | exp Function
- Perl | chr() Function
- Perl | each() Function
- Perl | oct() Function
- Perl | int() function
- Perl | hex Function
- Perl | log() Function
- Perl | return() Function
- Perl | rindex() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.