perl lib: create empty nodes