Re: problem with $liststore->set



* Jens Luedicke <jens luedicke gmail com> [2005-07-20 23:45]:
I looked into Stat::lsMode and the following piece of code from
format_mode seems to be the problem:

  if (wantarray) {
    (@ftype, @permstrs);
  } else {
    join '', @ftype, @permstrs;
  }

Ah, duh. So then you need

    $liststore->set($iter, 0, scalar $stuff->return_value);

But of course this has nothing to do with Gtk2.

Regards,
-- 
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;



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