Pipe variables to a function

by Feb 8, 2011

I'm trying to learn how to pipe variables to a function with multiple parameters.  I can successfully pipe a variable to a function with one parameter.  For example:

$test = "xyz"

$test | testfunction

Here testfunction uses 1 parameter.  What I can't get figure out is how to get that to work if testfunction uses 2 parameters.  Any help would be appreciated.