Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: given-when construct unexpected bahavior wit arrays

by mantager (Sexton)
on Jun 07, 2012 at 17:39 UTC ( #975003=note: print w/replies, xml ) Need Help??


in reply to Re: given-when construct unexpected bahavior wit arrays
in thread given-when construct unexpected behavior with arrays

Thank you for pointing this out, I thought use v5.14 would enforce strict and warnings, but I found out it's not so.

Replies are listed 'Best First'.
Re^3: given-when construct unexpected bahavior wit arrays
by toolic (Bishop) on Jun 07, 2012 at 18:07 UTC
    From use, only strict is used, not warnings:
    if the specified Perl version is greater than or equal to 5.11.0, strictures are enabled lexically as with use strict .

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://975003]
help
Chatterbox?
[shmem]: of course
[shmem]: the members of @another_array are conflated to @array
[shmem]: try it out:
[Lady_Aleena]: shmem, thanks. I'm am way out of practice.
[shmem]: perl -lE '@foo = (0..3);@bar = (4..7); push @foo,@bar; say for @foo'
[Lady_Aleena]: shmem, I feel like an idiot for forgetting something so basic.
shmem puts a big cauldron of "silly con charme" on the table in the refectorium
[reisinge]: 'push @foo, @bar' is the same as '@foo = (@foo ,@bar)' ?

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-04-27 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.