http://www.perlmonks.org?node_id=794142


in reply to Re: initialise state variable from list context, NOT!
in thread initialise state variable from list context, NOT!

Thanks for the quick answer. The reason I thought I may get it to work with some hints for the compiler is that this is allowed

state %record; %record = ( getting => 'url', url => 'http://', match => '', getting => '', alarm => 'no', );

Is an empty hash considered as a safe case? Where is the border of what I can get away with?

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!