in reply to Differentiating STDIN from arguments when using -n ?

perl -nse 'print if /$myarg/' -- -myarg=^#