Re: Split and concatenation

2011-12-17 Thread Shlomi Fish
Hi Vishnu, On Sat, 17 Dec 2011 08:22:31 + wrote: > Hi, > > I am trying to convert the string abc.def.ghi.amm to abcdefghiamm using split > and concatenation. I am missing something somewhere.. please help me to fix > the code > > my $string = "abc.def.ghi.amm"; > > my @d = split(/\./,"$

Re: Split and concatenation

2011-12-17 Thread John W. Krahn
vishnu.kuma...@wipro.com wrote: Hi, Hello, I am trying to convert the string abc.def.ghi.amm to abcdefghiamm using split and concatenation. I am missing something somewhere. . please help me to fix the code my $string = "abc.def.ghi.amm"; my @d = split(/\./,"$string"); my $e = @d; for (my

Re: Split and concatenation

2011-12-18 Thread Dr.Ruud
On 2011-12-17 09:20, T D, Vishnu wrote: I am trying to convert the string abc.def.ghi.amm to abcdefghiamm $string =~ s/\.+//g using split and concatenation. join "", split /\.+/, $string -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands,

RE: Split and concatenation

2011-12-19 Thread T D, Vishnu
Thanks guys for your suggestion -Original Message- From: Shlomi Fish [mailto:shlo...@shlomifish.org] Sent: Saturday, December 17, 2011 2:48 PM To: vishnu.kuma...@wipro.com Cc: beginners@perl.org Subject: Re: Split and concatenation Hi Vishnu, On Sat, 17 Dec 2011 08:22:31 +

Re: Split and concatenation

2011-12-19 Thread Brandon McCaig
On Sat, Dec 17, 2011 at 08:22:31AM +, vishnu.kuma...@wipro.com wrote: > Hi, Hello: > I am trying to convert the string abc.def.ghi.amm to > abcdefghiamm using split and concatenation. I am missing > something somewhere.. please help me to fix the code > > my $string = "abc.def.ghi.amm"; > >