[Top][All Lists]

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

Re: output variables from functions

From: Francesco Potorti`
Subject: Re: output variables from functions
Date: Mon, 30 Mar 2009 13:20:45 +0200

>I've tried this many times, but then when I try to use this variable 
>somewhere else in the script I just get an error message saying that it 
>is unassigned? How can this be?

You need to write

 global ca

inside a function in order to be able to use the global variable ca
inside that function.

Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
(entrance 20, 1st floor, room C71)     Web:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]