biggest lottery winners

2009-11-27 Thread william kisman
password friends news.aol.com/nation/lottery/prizes New Email names for you! Get the Email name you've always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/

Re: A simple question about the Perl line

2009-11-27 Thread Majian
Thanks all . On Sat, Nov 28, 2009 at 3:00 AM, Randal L. Schwartz wrote: > > "Majian" == Majian writes: > > Majian> Hi ,all: > Majian> I have a problem about this : > > Majian> cat test: > Majian> 12 > Majian> 23 > Majian> 34 > Majian> 45 > Majian> 56 > Majian> 67 > > Majian> I want to bec

Re: Separating DB operations out of program code

2009-11-27 Thread Steve Bertrand
Dermot wrote: > 2009/11/26 Scott Pham : >> Have you looked at DBIx::Class? >> > > I'd 2nd that. DBIx is the way forward. You should be looking to stop > writing SQL statements and moving towards ORM. Try the example at > http://search.cpan.org/~frew/DBIx-Class-0.08114/lib/DBIx/Class/Manual/Example

Re: remove directory from @INC

2009-11-27 Thread Shawn H Corey
Huub van Niekerk wrote: > Hi, > > Sorry if this is the wrong group. > > Using Fedora Linux, due to system changes the path to the Perl modules > has changed. I've found that @INC contains the new path, but it's placed > after the old path. So now I'm getting messages that modules can't be > fo

Re: a simple question about the line

2009-11-27 Thread Chris Charley
- Original Message - From: "Dermot" Newsgroups: perl.beginners To: "John W. Krahn" Cc: "Perl Beginners" Sent: Friday, November 27, 2009 12:29 PM Subject: Re: a simple question about the line 2009/11/27 John W. Krahn : Hello, $ echo "12 23 34 45 56 67 78" | perl -lpe'$\=--$|?

remove directory from @INC

2009-11-27 Thread Huub van Niekerk
Hi, Sorry if this is the wrong group. Using Fedora Linux, due to system changes the path to the Perl modules has changed. I've found that @INC contains the new path, but it's placed after the old path. So now I'm getting messages that modules can't be found in @INC anymore. The docs I've read

Re: A simple question about the Perl line

2009-11-27 Thread Randal L. Schwartz
> "Majian" == Majian writes: Majian> Hi ,all: Majian> I have a problem about this : Majian> cat test: Majian> 12 Majian> 23 Majian> 34 Majian> 45 Majian> 56 Majian> 67 Majian> I want to become like this : Majian> 1223 Majian> 3445 Majian> 5667 Majian> I thought it for a long time , but I

Re: a simple question about the line

2009-11-27 Thread Dermot
2009/11/27 John W. Krahn : > Hello, > > $ echo "12 > 23 > 34 > 45 > 56 > 67 > 78" | perl -lpe'$\=--$|?$,:$/' > 1223 > 3445 > 5667 > 78 For the benefit of this Luddite, please explain? Dp. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@

Re: a simple question about the line

2009-11-27 Thread John W. Krahn
Majian wrote: Hi, all : Hello, I have a problem about the lines of the file , like this : cat test 12 23 34 45 56 67 78 ... == I want to display like this : 1223 3445 5667 It means the next line is after the last line . How do it by the Perl ? $ echo "12 23 34 45 56 6

Re: for loop

2009-11-27 Thread Shawn H Corey
PigInACage wrote: > Hello all. > > I've got a file CSV with 3 column > name,surname,group > > if one of the column has got a space like > Davide,Super Dooper,Group > I cannot use it in a for loop > > for i in `cat list.csv` ; do echo $i ; done > the result is > Davide,Super > Dooper,Group > > h

Re: for loop

2009-11-27 Thread lan messerschmidt
On Fri, Nov 27, 2009 at 6:32 PM, PigInACage wrote: > Hello all. > > I've got a file CSV with 3 column > name,surname,group > > if one of the column has got a space like > Davide,Super Dooper,Group > I cannot use it in a for loop > > for i in `cat list.csv` ; do echo $i ; done > the result is > Dav

Re: for loop

2009-11-27 Thread Steve Bertrand
PigInACage wrote: > Hello all. > > I've got a file CSV with 3 column > name,surname,group > > if one of the column has got a space like > Davide,Super Dooper,Group > I cannot use it in a for loop > > for i in `cat list.csv` ; do echo $i ; done > the result is > Davide,Super > Dooper,Group > > h

Re: Separating DB operations out of program code

2009-11-27 Thread Steve Bertrand
Dermot wrote: > 2009/11/26 Scott Pham : >> Have you looked at DBIx::Class? >> > > I'd 2nd that. DBIx is the way forward. You should be looking to stop > writing SQL statements and moving towards ORM. Try the example at > http://search.cpan.org/~frew/DBIx-Class-0.08114/lib/DBIx/Class/Manual/Example

Re: Problems in POSIX

2009-11-27 Thread C.DeRykus
On Nov 25, 7:44 am, raheel.has...@gmail.com (Raheel Hassan) wrote: > > I am unable to understand the use of these statements in the program, I have > read about POSIX in the CPAN but still things are not clear to me. > > use POSIX ":sys_wait_h";  #What sys_wait_h does? > > waitpid($_,&WNOHANG) # w

for loop

2009-11-27 Thread PigInACage
Hello all. I've got a file CSV with 3 column name,surname,group if one of the column has got a space like Davide,Super Dooper,Group I cannot use it in a for loop for i in `cat list.csv` ; do echo $i ; done the result is Davide,Super Dooper,Group how can I have all inone line? Really thanks. -

Re: A simple question about the Perl line

2009-11-27 Thread lan messerschmidt
On Fri, Nov 27, 2009 at 8:34 PM, Majian wrote: > Could  you explain  it ? > > What is the meaning of the $.? And Why use  the "%2"  operator? > $. means the line number, see perldoc perlvar and look for $. %2 means the modulus operator. # perl -le 'print $_%2 for 0..3' 0 1 0 1 HTH. -- To unsub

a simple question about the line

2009-11-27 Thread Majian
Hi, all : I have a problem about the lines of the file , like this : cat test 12 23 34 45 56 67 78 ... == I want to display like this : 1223 3445 5667 It means the next line is after the last line . How do it by the Perl ? Thanks in advance ~ -- To unsubscribe, e-

Re: A simple question about the Perl line

2009-11-27 Thread lan messerschmidt
On Fri, Nov 27, 2009 at 8:03 PM, Majian wrote: > Hi ,all: > > I have a problem about this : > > cat test: > 12 > 23 > 34 > 45 > 56 > 67 > ... > > I want to become like this : > 1223 > 3445 > 5667 > ... > # perl -e ' $m=<) { chomp if $.%2; print; }' 1223 3445 5667 -- To unsubscribe, e-m

A simple question about the Perl line

2009-11-27 Thread Majian
Hi ,all: I have a problem about this : cat test: 12 23 34 45 56 67 ... I want to become like this : 1223 3445 5667 ... That means the next line is after the above line ~ I thought it for a long time , but I have no idea yet~~ Can someone help me ? Thanks

Re: dcc chat example

2009-11-27 Thread Shlomi Fish
On Friday 27 Nov 2009 12:49:28 Rob Coops wrote: > On Fri, Nov 27, 2009 at 11:26 AM, Kammen van, Marco, Springer SBM NL < > > marco.vankam...@springer.com> wrote: > > Absolutely no'one with a example or hint in the right direction??? > > > > :-( > > > > - > > Marco van Kammen > > Springer Science+B

Re: dcc chat example

2009-11-27 Thread Rob Coops
On Fri, Nov 27, 2009 at 11:26 AM, Kammen van, Marco, Springer SBM NL < marco.vankam...@springer.com> wrote: > Absolutely no'one with a example or hint in the right direction??? > > :-( > > - > Marco van Kammen > Springer Science+Business Media > System Manager & Postmaster > - > van Godewijckstraa

Re: calc time elapsed in days

2009-11-27 Thread Rob Coops
On Fri, Nov 27, 2009 at 11:25 AM, Dermot wrote: > 2009/11/27 Rob Coops : > > On Fri, Nov 27, 2009 at 5:43 AM, raphael() > wrote: > >> > >> HOW CAN I COUNT ELAPSED DAYS ? > >> > >> I tried in localtime() days value like > >> > >> my @array_date = localtime(); > >> my $current_dayofyear = @array_d

RE: dcc chat example

2009-11-27 Thread Kammen van, Marco, Springer SBM NL
Absolutely no'one with a example or hint in the right direction??? :-( - Marco van Kammen Springer Science+Business Media System Manager & Postmaster - van Godewijckstraat 30 | 3311 GX Office Number: 05E21 Dordrecht | The Netherlands -   tel   +31(78)6576446 fax   +31(78)6576302 - www.sp

Re: calc time elapsed in days

2009-11-27 Thread Dermot
2009/11/27 Rob Coops : > On Fri, Nov 27, 2009 at 5:43 AM, raphael() wrote: >> >> HOW CAN I COUNT ELAPSED DAYS ? >> >> I tried in localtime() days value like >> >> my @array_date = localtime(); >> my $current_dayofyear = @array_date[7]; >> >> >> But this would break on New year as "$current_dayofye

Re: Perl - Read and Write Multi-Language text (Scandanavian,German)

2009-11-27 Thread CM
> You can use regexes to match specific characters. But generally your converter > (e.g: of ahttp://en.wikipedia.org/wiki/Lightweight_markup_language) wil ldo > that for you. Do you need to guess the language of the document? I still don't > understand exactly what you want to do. > Shlomi, I do

Re: Perl - Read and Write Multi-Language text (Scandanavian,German)

2009-11-27 Thread Shlomi Fish
Hi CM! On Thursday 26 Nov 2009 18:42:30 CM wrote: > > It's "Shlomi" (English spelling) - not "Schlomi" (German Spelling). Many > > people make this mistake. > > My apologies. > > > What does "cat /etc/debian_version" say? > > 4.0 > > > > I hit on an idea that each text file coming from differe

Re: Perl - Read and Write Multi-Language text (Scandanavian,German)

2009-11-27 Thread CM
> It's "Shlomi" (English spelling) - not "Schlomi" (German Spelling). Many > people make this mistake. My apologies. > What does "cat /etc/debian_version" say? 4.0 > > I hit on an idea that each text file coming from different sources will > > have the Unicode UTF8 hex string of all the speci

Re: calc time elapsed in days

2009-11-27 Thread Rob Coops
On Fri, Nov 27, 2009 at 5:43 AM, raphael() wrote: > Hi, > > I have to code a script to calc time elapsed in days as to calc the rent to > be charged. > The person would write an object number and date in a text file like > > db.txt > OBJECT_NUM, DATE_GIVEN > > 2525,25.11.2008 > 2526,01.01.2009 >