Thats called Sha-Bang header also called Magical Bytes. They come into picture when you do not specify the interpreter while executing the script.
EG: ./my_script.pl (here no interpreter is specified i.e perl is missing) In this case, script uses the interpreter specified at sha-bang header. And now since you are specifying the interpreter on the prompt (perl my_script.pl) hence its not showing any error even on windows. Cheers, Parag On Mon, Jan 3, 2011 at 9:33 PM, Sunita Rani Pradhan <sunita.prad...@altair.com> wrote: > Hi All > > > > Perl script works without the first line ( perl Interpreter > : #! /usr/bin/perl) . What is the real use of this line ? This line does > not through any error on Windows where , this path does not exist . > > Why is it so ? > > > > Could anybody explain it clearly? > > > > Thanks > > Sunita > > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/