in reply to Re: arguments to perl -e
in thread arguments to perl -e

Other solution. Insert $var variable before the file and send the stream. The Perl script will read it at BEGIN step:
#!/bin/bash file="timer" var="Two" (echo $var; cat $file) | perl -e 'BEGIN { $var=<> } print <>; END { p +rint $var }' > output

Ok... Is UGLY, I know it... but I have impatience!