w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Concatenation string variables from an array gives unexpected quotes in Perl

$part in the foreach loop aliases each element of @parts. So you're actually storing back into the array, the strings you wrapped with quotes.

Try using Data::Dumper and dump @parts at the bottom of each loop.

use Data::Dumper;

print Dumper( @parts );

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.