-ln015 on #! line -vs- command line 
Author Message
 -ln015 on #! line -vs- command line

Ok, what's going on here?.  If /tmp/foo is

        #!/bin/perl -ln015
        print "$\$/";

mustn't the output of    echo | /tmp/foo | od -b    be identical to the
output of

        echo | /bin/perl -ln015 -e 'print "$\$/"' | od -b

???  They're not.  The first gives

        015 015 015

Ths second gives

        012 015 012

Perl4 gives the second answer for both cases.



~\Allen/~Fax: 516-575-7428    <Universe>: 1e22 stars = 22 solar masses per sec

Tue, 14 Mar 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. executing commands, command-line vs. browser

2. Win32::OLE problem -- command line vs. CGI

3. LIBWWW - Command Line vs Web Browser

4. command line parameters (.bat vs .pl)

5. price of perl (was Re: GUI vs command line)

6. Command line script vs modules/subroutines

7. -F works on command line but not on #!perl -paF line

8. Perl command line search and line replace

9. capturing command line error or output from `<command>`

10. Running Command Line Commands

11. command line commands from inside perl ?

12. Output of a command line command


Powered by phpBB® Forum Software