I've used Data::Dumper quite a few times and this is the first time I've experienced this...not sure what is going on...ugh.
Basically when I dump the following:
$VAR = { 'key_name' => [1,2,3,4,5] };
..it gets printed as:
'1' ,
'2' ,
'3' ,
'4' ,
'5'
]
};
That looks fine but for some reason when I do() the file all the values in the arrayref have (I think) a new line after them.
If I edit the file so it looks like:
$VAR = { 'key_name' => [1,2,3,4,5] };
...again, the new line disappears. I don't get it. It's not even like the single quotes drop onto a new line like:
[ '1
',
'2
',
...so I don't know where the new line is coming from....(or space).....but it is causing me grief.
Basically when I dump the following:
$VAR = { 'key_name' => [1,2,3,4,5] };
..it gets printed as:
Code:
$VAR = { 'key_name' => [ '1' ,
'2' ,
'3' ,
'4' ,
'5'
]
};
That looks fine but for some reason when I do() the file all the values in the arrayref have (I think) a new line after them.
If I edit the file so it looks like:
$VAR = { 'key_name' => [1,2,3,4,5] };
...again, the new line disappears. I don't get it. It's not even like the single quotes drop onto a new line like:
[ '1
',
'2
',
...so I don't know where the new line is coming from....(or space).....but it is causing me grief.