in reply to problem with shebang

1) You can edit errors such as you made here (by failing to include code tags) by updating (adding code tags) rather than by duping the question, as you did in id:/543444. Please update, rather than creating a new question, in the future. On the other hand, until we fix the the dupe situationdone please see chromatic's response to your other post, in case you're showing us historical output: did you reinstall or update perl recently?

2) If the your illustration is not suffering from fatfingers or editing, what is not working? I see cat spitting out plausible code with a perfectly fine shebang --
#!/usr/bin/perl -W
... and execution of hello.pl emitting what I would expect from your code.

Replies are listed 'Best First'.
Re^2: problem with shebang
by miraceti (Initiate) on Apr 15, 2006 at 01:59 UTC
    thanks for editting my post.
    it works when i use 'perl' explicitly in front of script name,
    but it doesn't work when i just type './hello.pl'.

    './hello.pl' spits out nothing.
    'perl hello.pl' works.

    i have upgraded the kernel recently.
    but not the perl.

      OTOH, I see you also posted the exact same question to clpmisc. If anything relevant and different from what comes out here pops up there, then be sure to report for the benefit of others, and vice-versa.