Dear List
I have doubt about the exact working of join function. I have written the
following small code
use strict;
use warnings;

my @array=  join ("-k", @ARGV );
print "@array\n";

I am running the program as follows which producing the following output
[anadhik...@strawberry test_prog]$ perl test1.pl 1 2 3
1-k2-k3
[anadhik...@strawberry test_prog]$

Now my question is why the beginning -k is missing from the output and how
It can be solved?

Reply via email to