in reply to Re^3: How can increase number sequence in a variable
in thread How can increase number sequence in a variable
"...what you are intending to show..."
Good question. Perhaps the Roussillon i had last night wasn't so inspiring as i hoped.
Presumably i meant something like this:
#!/usr/bin/env perl use strict; use warnings; use Data::Dump; my @x = ( 1 .. 2 ); my @y = ( 3 .. 4 ); dd \@x; dd \@y; my @result = map { $_ } ( @x, @y ); dd \@result; dd \@x; dd \@y; __END__ karls-mac-mini:monks karl$ ./1nickt.pl [1, 2] [3, 4] [1 .. 4] [1, 2] [3, 4]
The source arrays are intact and no need to deref here.
If this is helpful to the OP or good is another question ;-)
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
|
|---|