Skip to content

Instantly share code, notes, and snippets.

@Juerd
Last active June 28, 2018 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Juerd/7b684255e2bc0a1fd29112d53f12b063 to your computer and use it in GitHub Desktop.
Save Juerd/7b684255e2bc0a1fd29112d53f12b063 to your computer and use it in GitHub Desktop.
&join($s, @a) # sub call
join($s, @a) # sub call
join $s, @a # sub call
&::("join")($s, @a) # sub call (lookup by name)
@a ==> &join($s) # pipe to sub call
@a ==> join($s) # pipe to sub call
@a ==> join $s # pipe to sub call
&join($s) <== @a # pipe to sub call
join($s) <== @a # pipe to sub call
join $s <== @a # pipe to sub call
$s.&join(@a) # sub as method call
$s.&join: @a # sub as method call
$s.&::("join")(@a) # sub as method call (lookup by name)
$s.&::("join"): @a # sub as method call (lookup by name)
@a.join($s) # method call
@a.join: $s # method call
@a."join"($s) # method call (lookup by name)
join @a: $s # method call (indirect)
join(@a: $s) # method call (indirect)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment