--- Pozsar Balazs <[EMAIL PROTECTED]> wrote:
>
> hi again,
>
> I get this warning:
> Reference found where even-sized list expected at ./n.pl line 94.
It usually means you're using {} instead of () to assign hash values.
=o)
> when running my script, and i don't understand what does it mean.
> Please explain. Here are the relevant lines:
>
> 94: my %args = {
yep. --------------^
> 95: descriptor => "/usr/lib/nitro/all.xml",
> 96: build => {
> 97: cleanup => 1,
> 98: bindir => "$origwd/binaries"
> 99: }
> 100: };
--------^
{} is the anonymous hash constructor; it returns a reference to hash
space that it allocates. You've created a hash with no name, and
returned a reference to it to be stored in %args, which expects a key
AND a value.
Use () instead of {} and it'll do what you wanted.
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/