On Mon, 4 Feb 2002, Simon Glover wrote: > Re the former, am I right in thinking that assignment from a PerlArray > to a non-PMC register should always be in scalar context; ie that: > > new P0, PerlArray > set S0, P0 > > should lead to S0 having the value "0" and not ""?
"string" isn't "scalar" context, I think this should stringify the array, so that @foo = qw(elephants hide in custard) becomes "@foo" -> "elephantshideincustard". > --- core.ops.old Fri Feb 1 15:57:44 2002 > +++ core.ops Fri Feb 1 15:59:10 2002 Applied, thanks. Alex Gough -- #!/usr/bin/perl use Quantum::Entanglement qw(:DEFAULT :complex); $language = entangle(1,'python',1/i,'C',i*i,'Perl',1/i**2,'Java',i**5,'C#'); print "Just another $language hacker,\n" if $language eq 'Perl';