Catmandu::Fix::paste3pm
Concatenate path values
Usage
# If you data record is:# a: eeny# b: meeny# c: miny# d: moepaste(my.string,a,b,c,d) # my.string: eeny meeny miny moe# Use a join characterpaste(my.string,a,b,c,d,join_char:", ") # my.string: eeny, meeny, miny, moe# Paste literal strings with a tilde signpaste(my.string,~Hi,a,~how are you?) # my.string: Hi eeny how are you?# Paste works even when not all values are instantiatedpaste(my.string,x,a,z) # my.string: eeny
Overview
Paste places a concatenation of all paths starting from the second path into the first path. Literal values can be pasted by prefixing them with a tilde (~) sign.
When a path doesn't exist it is regarded as having an empty '' value.
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.