Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Why does this core? or How am I being a bonehead

by McD (Chaplain)
on Mar 16, 2001 at 00:35 UTC ( #64772=note: print w/ replies, xml ) Need Help??


in reply to Why does this core? or How am I being a bonehead

I think I'm stumped too, but I'll offer this: the range operator in the second subscript makes me nervous:

$bigArr[0 .. 2] = $dataArr[$count][0 .. 2];

I'm not sure what context that gets evaulated in, but what you want is a list, I believe. If it's getting scalar by mistake, that could be trouble.

So I'd try either wrapping it in parens, or explicitly using a list:

$bigArr[0 .. 2] = $dataArr[$count][(0 .. 2)];

or

$bigArr[0 .. 2] = $dataArr[$count][0,1,2];

...and see if that helped.

Peace,
-McD


Comment on Re: Why does this core? or How am I being a bonehead
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://64772]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-12-21 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (100 votes), past polls