Re: insert a . every four characters

2012-03-09 Thread Jim Gibson
At 8:37 PM -0800 3/9/12, Noah wrote: Hi there, I am trying to insert a '.' every four characters. Say I have a $it = '123456789012' and want the result to be '1234.5678.9012' whats one of the smoothest ways to do that? You could adapt the method suggested by 'perldoc -q commas' "How can I

Re: insert a . every four characters

2012-03-09 Thread Owen
> On 3/9/12 8:37 PM, Noah wrote: >> Hi there, >> >> I am trying to insert a '.' every four characters. Say I have a $it >> = >> '123456789012' and want the result to be '1234.5678.9012' >> >> whats one of the smoothest ways to do that? > > > okay I answered my own question. I am wondering if ther

Re: [ask] oracle date

2012-03-09 Thread Octavian Rasnita
From: "Eko Budiharto" Subject: [ask] oracle date > dear list, > I have a date data extracted from oracle, stored as this 1993-11-30 > 00:00:00. The datatype in the oracle is date. I would like to save into > mysql (the datatype is also date), I got an error. When I do a small > debug, I print

Re: Of Date-Manip and Perl versions

2012-03-09 Thread Bruce Ferrell
On 03/09/2012 09:45 PM, David Christensen wrote: > On 03/08/2012 11:53 AM, Bruce Ferrell wrote: >> Just thought I'd share with the group and experience I just had. In perhaps >> the hope of sparing others of the PITA I just went through. > ... > > use Common; # contains timestamp() > > use Date:

Re: Of Date-Manip and Perl versions

2012-03-09 Thread David Christensen
On 03/08/2012 11:53 AM, Bruce Ferrell wrote: Just thought I'd share with the group and experience I just had. In perhaps the hope of sparing others of the PITA I just went through. ... > use Common; # contains timestamp() > use Date::Manip; ... > Shouldn't this have thrown SOME kind of error/

[ask] oracle date

2012-03-09 Thread Eko Budiharto
dear list, I have a date data extracted from oracle, stored as this 1993-11-30 00:00:00. The datatype in the oracle is date. I would like to save into mysql (the datatype is also date), I got an error. When I do a small debug, I print the date directly, it comes out into 30-NOV-93. I am trying

Re: What name(space) is suitable for My::Module?

2012-03-09 Thread David Christensen
On 03/09/2012 06:53 AM, Narazaka Nanigashi wrote: I'm going to release a Perl module for the first time but cannot determine the name of the module. ... My module is for input and output of "config" / "BBS log" files whose records are separated by some delimiters. Please see: http://ww

Re: insert a . every four characters

2012-03-09 Thread Noah
On 3/9/12 8:37 PM, Noah wrote: Hi there, I am trying to insert a '.' every four characters. Say I have a $it = '123456789012' and want the result to be '1234.5678.9012' whats one of the smoothest ways to do that? okay I answered my own question. I am wondering if there is a different way?

insert a . every four characters

2012-03-09 Thread Noah
Hi there, I am trying to insert a '.' every four characters. Say I have a $it = '123456789012' and want the result to be '1234.5678.9012' whats one of the smoothest ways to do that? Cheers, Noah -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: begi

Re: What name(space) is suitable for My::Module?

2012-03-09 Thread Narazaka Nanigashi
On Fri, 09 Mar 2012 11:14:25 -0500 Shawn H Corey wrote: > On 12-03-09 10:56 AM, Narazaka Nanigashi wrote: > > Oh, I missed checking it. > > > > My purpose is to process multiple delimiters, so Text::CSV is not enough... > > but Text::* can be one of the choice of namespace? > > If it involves o

I'd like to explain to me how to do testing on lists and list slices

2012-03-09 Thread ml
hello the list hello "the" perl guru hello this I want to know how to work on slices of lists. I has 3 slices of the form. $t[0] = user; $t[1] = ip; $t[2] = time(); the registration of the list are checked by me I know what the file contains and recording are separated by a space (/\s+/) I woul

Re: What name(space) is suitable for My::Module?

2012-03-09 Thread Shawn H Corey
On 12-03-09 10:56 AM, Narazaka Nanigashi wrote: Oh, I missed checking it. My purpose is to process multiple delimiters, so Text::CSV is not enough... but Text::* can be one of the choice of namespace? If it involves only text. If it works on other things, like say packed strings, then someth

Re: What name(space) is suitable for My::Module?

2012-03-09 Thread Narazaka Nanigashi
Oh, I missed checking it. My purpose is to process multiple delimiters, so Text::CSV is not enough... but Text::* can be one of the choice of namespace? On Fri, 09 Mar 2012 10:18:29 -0500 Shawn H Corey wrote: > On 12-03-09 09:53 AM, Narazaka Nanigashi wrote: > > or... some other module for my

Re: What name(space) is suitable for My::Module?

2012-03-09 Thread Shawn H Corey
On 12-03-09 09:53 AM, Narazaka Nanigashi wrote: > or... some other module for my purpose already exists? have you checked out Text::CSV ? I sounds similar to what you're proposing. -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and communication a

What name(space) is suitable for My::Module?

2012-03-09 Thread Narazaka Nanigashi
Hello, I'm going to release a Perl module for the first time but cannot determine the name of the module. Please suggest some names or let me know a place suitable for asking this issue. I'm mainly hesitating to decide the namespace of the module. My module is for input and output of "config" /