Front page | perl.beginners |
Postings from August 2009
'Join' query
Thread Next
From:
jet speed
Date:
August 7, 2009 08:03
Subject:
'Join' query
Message ID:
b43e0e600908070803m54d74c83me07e288d4ce52cf6@mail.gmail.com
Hi,
I would like to join the $abc with ':' the final desired output 1:2:3:4:5
#!/usr/bin/perl
use strict;
use warnings;
my $abc = "1 2 3 4 5";
my $out = join ':', $abc;
print "$out";
executing the above, i get the same output 1 2 3 4 5, not sure were am going
wrong.
Any help on this would be much appreciated.
Thanks
Sj
Thread Next
-
'Join' query
by jet speed