1 | split takes a line and splits into parts which are separated by a delimiter defined as any regular expression. For example |
2 | @fields = split(/\s/,$line); # splits string $line into several fields stored in $field[0] $field[1] etc. where these fields were separated by white space (\s) in $line |
3 | join inverts the operation although the join string must now be an ordinary single or double quoted string and not a regular expression as no matching is occuring! |
4 | $line = join( " \t", @fields); # rebuilds $line with space and tab as separator. |