Take a look at this method call:
(line,format_line)=replace_tabs(line,fmt_line,@current_ruler)
in the method replace_tabs, format line ha the right value,
but in the caller, its not receiving it.
This is how I'm returning the values:
return([line,format_line])
which I understand to mean that I'm returning an array, so I suppose I need
to know how to "unpack" the array into the two receiving values
Thanks
Graham Nicholls
···
--
With Linux, the answer's always "Yes"
(line,format_line)=replace_tabs(line,fmt_line,@current_ruler)
line, format_line = replace_tabs(line, fmt_line, @current_ruler)
This is how I'm returning the values:
return([line,format_line])
return line, format_line
Alex
···
On Tue, Jul 06, 2004 at 12:42:43AM +0900, Graham Nicholls wrote:
Graham Nicholls wrote:
Take a look at this method call:
(line,format_line)=replace_tabs(line,fmt_line,@current_ruler)
in the method replace_tabs, format line ha the right value,
but in the caller, its not receiving it.
This is how I'm returning the values:
return([line,format_line])
which I understand to mean that I'm returning an array, so I suppose I
need to know how to "unpack" the array into the two receiving values
Thanks
Graham Nicholls
Doh!, it works - I just put in some debugging, andthe caller is getting the
values. Problem must be elsewhere.
Thanks, anyway!
Graham
···
--
With Linux, the answer's always "Yes"
Robert
(Robert)
4
"Alexander Kellett" <ruby-lists@lypanov.net> schrieb im Newsbeitrag
news:20040705154523.GA17137@loki...
···
On Tue, Jul 06, 2004 at 12:42:43AM +0900, Graham Nicholls wrote:
> (line,format_line)=replace_tabs(line,fmt_line,@current_ruler)
line, format_line = replace_tabs(line, fmt_line, @current_ruler)
> This is how I'm returning the values:
> return([line,format_line])
return line, format_line
Both work as expected, but I find the latter much cleaner.
robert