Hello Anant,

#!/usr/bin/perl is a *shebang* and is useful only in unix-like systems where 
it refers to the location of the interpreter. Under other systems the 
interpreter ignores this line as a comment. Shebang lines are useful to 
execute a script directly without having to specify the interpreter.

Consider a script named main.pl which can be executed under unix-like systems 
as:

perl main.pl

or

./main.pl  # system checks the shebang line for the interpreter to use

For more information: http://en.wikipedia.org/wiki/Shebang_(Unix)

Regards,
Alan Haggai Alavi.
-- 
The difference makes the difference.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to