Re: Status of scripting in nautilus



On Fri, Dec 17, 2004 at 02:56:29PM +0100, Daniel P?rsch said:
> I use the "Open Terminal" script from http://g-scripts.sourceforge.net 
> on a daily Basis with nautilus 2.8.1 (Ubuntu)

> # Added 2003-12-08 Dexter Ang
> if ($_ == "x-nautilus-desktop:///") {

I'm not sure if this makes any difference or not but this should be 

if ($_ eq "x-nautilus-desktop:///") {


since Perl uses eq for string comparison not == due to the fact that 
scalars can be strings and numbers

  $a = "0.000";
  $b = "0";

  print "a == b => ".($a == $b)."\n";
  print "a eq b => ".($a eq $b)."\n";

gives

  a == b => 1
  a eq b =>

Simon





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]