K
Krishna Chaitanya
Hi, I've been trying out a2p and found these lines at the top of the
perl output:
#!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if $running_under_some_shell;
Googled around for this and found several links to perlrun that
attempt to explain what this idiom does exactly but I am confused
about the part where the shell exec's /usr/bin/perl with the script
name and its arguments and then .... "ignores the lines parsed from
the script because the $running_under_some_shell variable is always
false"....
Where is the glue between parsing lines and ignoring them due to this
undefined variable? How is this happening exactly? Could anyone please
explain in a simpler language what is happening?
Thanks...
perl output:
#!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if $running_under_some_shell;
Googled around for this and found several links to perlrun that
attempt to explain what this idiom does exactly but I am confused
about the part where the shell exec's /usr/bin/perl with the script
name and its arguments and then .... "ignores the lines parsed from
the script because the $running_under_some_shell variable is always
false"....
Where is the glue between parsing lines and ignoring them due to this
undefined variable? How is this happening exactly? Could anyone please
explain in a simpler language what is happening?
Thanks...