Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Avoiding vivification with array slice

by Anonymous Monk
on Sep 09, 2008 at 13:49 UTC ( #710088=note: print w/replies, xml ) Need Help??

in reply to Avoiding vivification with array slice

Next time please put also the output of your test programs :)
your $program, 'here'; __END__ # perl /tmp/ Initially: $VAR1 = [ '1', '2', '3' ]; After assign from: $VAR1 = [ '1', '2', '3' ]; After grep over: $VAR1 = [ '1', '2', '3', undef, undef, undef ];

Replies are listed 'Best First'.
Re^2: Avoiding vivification with array slice
by jbert (Priest) on Sep 09, 2008 at 14:40 UTC

    Well, I thought the comment in the code was sufficient - I didn't want to over-cook the node.

    I'll try and be more clear next time, thanks.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://710088]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2018-07-21 23:45 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (450 votes). Check out past polls.