in reply to Re^4: Copying files from one file to another file
in thread Copying files from one file to another file
"...I didn't understand from here..."
I guess it's just because some of the elder fellow monks are a lazy bunch.
Consider this untested snippet or sketch - as you like:
#!/usr/bin/env perl use strict; use warnings; use Data::Dump; use feature qw (say); my %HoA = ( bar => ["13 : //comment thirteen"], foo => [ "12 : //comment twelve ", "5 : //comment five" ], ); dd \%HoA; say qq(\n--\n); # like in "Perl Programming" AKA "Camel Book" chapter 9... for my $key ( keys %HoA ) { say qq($key: ); for my $item ( 0 .. $#{ $HoA{$key} } ) { say qq( $item = $HoA{$key}[$item]); } print qq(\n); } __END__
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Copying files from one file to another file
by AnomalousMonk (Archbishop) on Feb 20, 2018 at 09:54 UTC | |
by karlgoethebier (Abbot) on Feb 20, 2018 at 10:21 UTC | |
|
Re^6: Copying files from one file to another file
by harishnv (Sexton) on Feb 20, 2018 at 09:54 UTC | |
by marto (Cardinal) on Feb 20, 2018 at 10:25 UTC |