SPUG: $foo->{$merry_christmas} && $I_hate_eol

Souza Jonathan jonathan.souza at usg.sms.siemens.com
Thu Dec 19 14:32:32 CST 2002

Thanks I was going crazy, SPUG is better than vallium.

-----Original Message-----
From: sthoenna at efn.org [mailto:sthoenna at efn.org]
Sent: Thursday, December 19, 2002 10:05 AM
To: spug-list at pm.org
Cc: Souza Jonathan
Subject: Re: SPUG: VEXED "Barbarian needs food badly" Scalar inside Hash problem

On Wed, 18 Dec 2002 19:49:06 -0800, jonathan.souza at usg.sms.siemens.com wrote:
>		while (<FH>)
>		{
>			($key, $value) = split /=/;
>			$self->{WHOAMI}{$key} = $value;
>		}
>		close FH;

It looks like that will leave newlines on the end of each $value, so
your $self->{WHOAMI}{MACHINE_NAME} is probably "SP2007\n" (as Peter Darley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/archives/spug-list/attachments/20021219/93bff2ad/attachment.htm

More information about the spug-list mailing list