Re: 2 dimensions array

2011-12-17 Thread kurtz le pirate
In article <4ee54abf.6080...@gmail.com>, shawnhco...@gmail.com (Shawn H Corey) wrote: > Try: > > push @Cylinders, [ $1, $2 ]; > > This will put the two captured variables in an anonymous array and push > it onto @Cylinders. so simple !! thanks :) -- klp -- To unsubscribe, e-mail: beginn

Split and concatenation

2011-12-17 Thread T D, Vishnu
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(/\./,"$string"); my $e = @d; for (my $i=0; $i < $e; $i++) { print("Value of a

Re: Custom Perl on Debian

2011-12-17 Thread Phil Dobbin
On 17/12/11 22:05, "Jeremiah C. Foster" wrote: > My advice after doing it by hand for so long is to use perlbrew. > > $ apt-get install perlbrew > > Then read the documentation and you're off and running. It is a great little > tool for installing multiple perls. That's what I did in the end b

Re: Problems in dates and time additions by one minute.

2011-12-17 Thread John W. Krahn
Raheel Hassan wrote: Hi, Hello, I have 3 files (these are the log files of the system). These files have date formate like this (Dec 5 09:02:01). Most date fields also have the year but your's doesn't appear to. Are you assuming the current year for all dates? I need to read these fi

Problems in dates and time additions by one minute.

2011-12-17 Thread Raheel Hassan
Hi, I have 3 files (these are the log files of the system). These files have date formate like this (Dec 5 09:02:01). I need to read these files from from the first date(Dec 5 09:02:01) till the last date (Dec 17 17:34:02) in the file. Then i have to search a word between the time difference of

Re: Custom Perl on Debian

2011-12-17 Thread Jeremiah C. Foster
On Fri, Dec 16, 2011 at 02:41:52PM +, Phil Dobbin wrote: > Hi, all. > > Has anybody have any experiences of installing a dev version of Perl into > /usr/local on Debian (I'm running Squeeze)? I've installed perl 6 as well as other perls on Debian both in chroots as well as under /usr/local.

Re: split function

2011-12-17 Thread Brandon McCaig
On Fri, Dec 16, 2011 at 09:36:53PM -0600, Chris Stinemetz wrote: > This program does all I need it to do. I am having some difficulty > wrapping my head around it though. Mainly the for loop. Did Rob use > special varible? > > If any one can explain it to me so I can have a better understanding >

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-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(/\./,"$

Split and concatenation

2011-12-17 Thread vishnu.kumartd
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(/\./,"$string"); my $e = @d; for (my $i=0; $i < $e; $i++) { print("Value of a