in reply to Re^4: shell to perl equivalent
in thread shell to perl equivalent

The arguments you pass on the command line are in the array @ARGV. Change the call of your paranthesis() sub to
paranthesis(@ARGV);

You should begin reading some perl manual pages, e.g. perl, perlsyn, perlrun...

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}