How do I run a perl script in solaris. Also how do I make it so that solaris starts out with a terminal running a telnet command.

I want to boot up and get a terminal with telnet already asking for my password.

TIA