I ran you code "as is" on Strawberry perl 5.24.1 under Windows 7. The output in the command window was different than yours, but wrong. I then redirected the output to a file. That file is displayed correctly by both the editor "gvim" and the browser "Internet Explorer". To remove any ambiguity, I have converted that file to hex with the utility "xxd" which ships with vim.
C:\Users\Bill\forums\monks>xxd tmp.txt
00000000: 2456 4152 3120 3d20 5b0d 0a20 2020 2020 $VAR1 = [..
00000010: 2020 2020 207b 0d0a 2020 2020 2020 2020 {..
00000020: 2020 2020 2741 6472 6573 2720 3d3e 2027 'Adres' => '
00000030: 4c69 eb72 272c 0d0a 2020 2020 2020 2020 Li.r',..
00000040: 2020 2020 2757 6f6f 6e70 6c61 6174 7327 'Woonplaats'
00000050: 203d 3e20 27f4 6c73 7465 6e27 2c0d 0a20 => '.lsten',..
00000060: 2020 2020 2020 2020 2020 2027 4e61 616d 'Naam
00000070: 2720 3d3e 2027 5065 7465 7227 0d0a 2020 ' => 'Peter'..
00000080: 2020 2020 2020 2020 7d0d 0a20 2020 2020 }..
00000090: 2020 205d 3b0d 0a ];..
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.