[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02688] Re: Tainting

From: ts <decoux@...>
Date: 2000-05-10 06:32:40 UTC
List: ruby-talk #2688
>>>>> "Y" == Yukihiro Matsumoto <matz@netlab.co.jp> writes:

Y> Perl reports:

Y>   Too late for "-T" option at /tmp/test.pl line 1.

Y> I didn't know that.  Do you think we should follow?

 No, perl give this message only in this case :

moulon% cat a.pl
#!/usr/bin/perl -T
moulon% perl a.pl
Too late for "-T" option at a.pl line 1.
moulon% 

 but I you run normally the script  it work :

moulon% a.pl
moulon% perl -T a.pl
moulon% 

 My remark was because I was really surprised to have `.' in $LOAD_PATH
 when running a script with #!/usr/bin/ruby -T, i.e.

moulon% cat b.rb
#!/usr/bin/ruby -T
p $LOAD_PATH
moulon% b.rb
["/usr/local/lib/site_ruby/1.4/i686-linux", "/usr/local/lib/site_ruby/1.4", "/usr/local/lib/site_ruby", "/usr/lib/ruby/1.4/i686-linux", "/usr/lib/ruby/1.4", "."]
moulon%

 This is not the case with perl :

 
moulon% cat a.pl
#!/usr/bin/perl -T
$" = " ";
print "@INC\n"
moulon% a.pl
/usr/local/lib/perl5/5.00503/sun4-sunos /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/sun4-sunos /usr/local/lib/perl5/site_perl/5.005
moulon% 

 `.' is not in @INC


Guy Decoux

In This Thread