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 ];..
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|