RE: Perl & SQL not doing what's expected...

2005-06-14 Thread Thomas Bätzler
Jez <[EMAIL PROTECTED]> wrote: > My perl code looks like this; > > use DBI; > use warnings; You should probably "use strict;" aswell and declare your variables before/when you use them with "my". > #open connection to Access database > $dbh = DBI->connect('dbi:ODBC:Deliveries'); > > #construct

PDF::ReportWriter-0.5 is out

2005-06-14 Thread Dan
Version 0.5 is out. Changes in this release: - Added support for images - scaled to fit to the current cell - Support multiple 'render_data' operations - you can keep passing new data ( or new groups / fields / data ) - Added support for colour - Added support for colour_func - a user-defined fun

RE: hashes and loops

2005-06-14 Thread Karyn Williams
At 04:37 PM 6/14/05 -0700, you wrote: >Karyn Williams wrote: >> Below is code that I found on the web that I slightly modified. I am >> trying to create a script to remove from a file (tlist) the items in >> another file (tnames). This works but I have multiple files (tlist) I >> need to check agai

Re: hashes and loops

2005-06-14 Thread Jeff 'japhy' Pinyan
On Jun 14, Karyn Williams said: Below is code that I found on the web that I slightly modified. I am trying to create a script to remove from a file (tlist) the items in another file (tnames). This works but I have multiple files (tlist) I need to check against. I'm not sure how/where to put the

Re: ???UNSURE??? Re: need help with regular expression

2005-06-14 Thread Jeff 'japhy' Pinyan
On Jun 14, Praedor Atrebates said: On Tuesday 14 June 2005 17:34, Jeff 'japhy' Pinyan wrote: The [...] construct is a character class -- it represents a set of characters, any of which can match. Thus, [KRH] matches a 'K', an 'R', or an 'H'. But [A{3,}B{3,}] is really just the same as [AB3,{

RE: hashes and loops

2005-06-14 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Karyn Williams wrote: > Below is code that I found on the web that I slightly modified. I am > trying to create a script to remove from a file (tlist) the items in > another file (tnames). This works but I have multiple files (tlist) I > need to check against. I'm not sure how/where to put the loop

RE: ???UNSURE??? RE: need help with regular expression

2005-06-14 Thread Tim Johnson
When you say "a series ... 3 to 5 characters in length", do you mean LLL,III,VVV,FFF,YYY Or LIV,FLY,YYL,FFI Because you could try something like /[KRH][LIVFY]{3,5}[KRH]/ (not tested), but something like. -Original Message- From: Praedor Atrebates [mailto:[EMAIL PROTECTED] Sent

Re: ???UNSURE??? Re: need help with regular expression

2005-06-14 Thread Praedor Atrebates
On Tuesday 14 June 2005 17:34, Jeff 'japhy' Pinyan wrote: > On Jun 14, Praedor Atrebates said: > > $dnakmotif = '[KRH][L{3,}V{3,}I{3,}F{3,}Y{3,}A{3,}][KRH]; > > > > I am just learning as I go here but there are two problems with this, one > > of which I understand but the other I do not. First, t

Re: ???UNSURE??? RE: need help with regular expression

2005-06-14 Thread Praedor Atrebates
On Tuesday 14 June 2005 16:37, Wagner, David --- Senior Programmer Analyst --- WGO wrote: [...] > > I have this (pertinent) code in my script: > > > > $dnakmotif ='[KRH][L{3,}V{3,}I{3,}F{3,}Y{3,}A{3,}][KRH]; > > $dnakmotif ='[KPH](L{3,5}|V{3,5}|I{3,5}|F{3,5}|Y{3,5}|A{3,5}){1,}[KRH]'; > This

hashes and loops

2005-06-14 Thread Karyn Williams
Below is code that I found on the web that I slightly modified. I am trying to create a script to remove from a file (tlist) the items in another file (tnames). This works but I have multiple files (tlist) I need to check against. I'm not sure how/where to put the loop and would appreciate any help

Re: need help with regular expression

2005-06-14 Thread Jeff 'japhy' Pinyan
On Jun 14, Praedor Atrebates said: $dnakmotif = '[KRH][L{3,}V{3,}I{3,}F{3,}Y{3,}A{3,}][KRH]; I am just learning as I go here but there are two problems with this, one of which I understand but the other I do not. First, the one I do not understand. My intent with the value set to $dnakmoti

Re: need help with regular expression

2005-06-14 Thread John W. Krahn
Praedor Atrebates wrote: I am dinking around with perl for bioinformatics purposes. I have written a small perl script that reads FASTA formatted sequence files and searches the sequence therein for user-entered sequences. This is primarily targetted at protein sequence analysis and for my p

RE: need help with regular expression

2005-06-14 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Praedor Atrebates wrote: > I am dinking around with perl for bioinformatics purposes. I have > written a small perl script that reads FASTA formatted sequence files > and searches the sequence therein for user-entered sequences. > > This is primarily targetted at protein sequence analysis and for

need help with regular expression

2005-06-14 Thread Praedor Atrebates
I am dinking around with perl for bioinformatics purposes. I have written a small perl script that reads FASTA formatted sequence files and searches the sequence therein for user-entered sequences. This is primarily targetted at protein sequence analysis and for my purposes, I've included -

RE : what is the MVC all about

2005-06-14 Thread Jose Nyimi
> -Message d'origine- > De : Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED] > Envoyé : mardi 14 juin 2005 16:39 > À : beginners@perl.org > Objet : what is the MVC all about > > > hi, >I have been lately reading a lot of stuff about perl > catalyst with MVC I am still not clear

Perl & SQL not doing what's expected...

2005-06-14 Thread Jez
Hi, I'm new at this game, and tearing my hair out... I've successfully got some Perl that queries a database without a predicate (no WHERE statement). When I attempt to retrieve specific data, I get either no results returned or errors ; DBD::ODBC::st execute failed: [Microsoft][ODBC Microsof

Re: what is the MVC all about

2005-06-14 Thread Chris Devers
On Tue, 14 Jun 2005, Wiggins d'Anconia wrote: > Chris Devers wrote: > > On Tue, 14 Jun 2005, Wiggins d'Anconia wrote: > > > > > >>The difficulty in developing in an MVC way is often sighted as a > >>reason not to use PHP/ASP (even Mason) in web development > > > > > > Oh? That isn't how I read thi

Re: what is the MVC all about

2005-06-14 Thread Wiggins d'Anconia
Chris Devers wrote: > On Tue, 14 Jun 2005, Wiggins d'Anconia wrote: > > >>The difficulty in developing in an MVC way is often sighted as a >>reason not to use PHP/ASP (even Mason) in web development > > > Oh? That isn't how I read things. > Right, you need to re-read my statement. "developing

Re: DBI, duplicates

2005-06-14 Thread Ing. Branislav Gerzo
Ing. Branislav Gerzo [IBG], on Tuesday, June 14, 2005 at 21:10 (+0200) thinks about: IBG> my ($id) = $dbh->selectrow_array("select id from IBG> db_url where id = ?", {}, $url); ahm, maybe I'm too tired or blind, don't see that - I have error in select statement :) -- ...m8s, cu l8r,

DBI, duplicates

2005-06-14 Thread Ing. Branislav Gerzo
Hi all, I'm using MYSQL, and have this weird problem, here is self-explaining snippet: sub save_url { my $url = shift || die "Need url!"; my ($id) = $dbh->selectrow_array("select id from db_url where id = ?", {}, $url); unless ($id) { my $sth = $dbh->prepa

Re: what is the MVC all about

2005-06-14 Thread Chris Devers
On Tue, 14 Jun 2005, Wiggins d'Anconia wrote: > The difficulty in developing in an MVC way is often sighted as a > reason not to use PHP/ASP (even Mason) in web development Oh? That isn't how I read things. The problem with PHP / ASP / JSP / Mason isn't that these frameworks make use of an MVC d

RE: Best practice when using data from external files

2005-06-14 Thread Bakken, Luke
>>> Just one thing though - I need to have DBD::SQLite installed on my >>> server and it's not on there, nor will it be (again, not my choice). >>> I'm still up a certain creek without a paddle *grin* >> >> Well, that one is between you and your admins, but Perl development >> is *significantly* e

Re: Best practice when using data from external files

2005-06-14 Thread Wiggins d'Anconia
Dale wrote: [snip] > > I think a bit of background is needed. I work for the helpdesk of an > ISP. The space I've got is a staff account which mirrors the service > the residential customers receive. It's got a cgi-bin (of course, > otherwise there wouldn't be any point in my script *grin*) but

Re: Best practice when using data from external files

2005-06-14 Thread Dale
Hi Chris Devers, you wrote : On Tue, 14 Jun 2005, Dale wrote: Hi Chris Devers, you wrote: >You miss the point of SQLite then. You're right, I have. I assumed it would need SQL to work. Thanks for correcting me! :) You're still confused, I think, though it's not quite your fault :-) It *

Re: MIME::QuotedPrint[::Perl] is not decoding anything

2005-06-14 Thread Adam Wuellner
On 6/14/05, Adam Wuellner <[EMAIL PROTECTED]> wrote: > On 6/14/05, Adam Wuellner <[EMAIL PROTECTED]> wrote: > > __DATA__ > > > > < > > > > Oh, super. Maybe to start, someone can help me get the data posted. :-\ > On closer inspection of the data, I discovered that there was an \x00 character be

Re: MIME::QuotedPrint[::Perl] is not decoding anything

2005-06-14 Thread Adam Wuellner
On 6/14/05, Adam Wuellner <[EMAIL PROTECTED]> wrote: > __DATA__ > > < > Oh, super. Maybe to start, someone can help me get the data posted. :-\ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

MIME::QuotedPrint[::Perl] is not decoding anything

2005-06-14 Thread Adam Wuellner
The following code, using either MIIME::QuotedPrint or MIME::QuotedPrint::Perl, does not decode the data. It returns exactly what is passed in. I suspect I must not have properly encoded data? It arrives this way via email. Any help appreciated. - Adam #!usr/bin/perl use strict; use warnings

Re: error in building perl module--hopefully not OT

2005-06-14 Thread Wiggins d'Anconia
Ron Smith wrote: > Jim Garvin <[EMAIL PROTECTED]> wrote: > Ron Smith wrote: > > >>Hmmm..., >> >>I'm attempting to build and install a perl module on a Win XP box using the >>free version of "Borland C++ Builder 6". I seem to have run into a snag. Here >>are the particulars: >> >>... >> >>make

Re: what is the MVC all about

2005-06-14 Thread Wiggins d'Anconia
Ramprasad A Padmanabhan wrote: > hi, > I have been lately reading a lot of stuff about perl catalyst with MVC > I am still not clear about practical use of MVC's > Can someone provide pointers about MVC and where they are best used ? > > Thanks > Ram > MVC is a design/architecture pattern, spe

Re: error in building perl module--hopefully not OT

2005-06-14 Thread Ron Smith
Jim Garvin <[EMAIL PROTECTED]> wrote: Ron Smith wrote: >Hmmm..., > >I'm attempting to build and install a perl module on a Win XP box using the >free version of "Borland C++ Builder 6". I seem to have run into a snag. Here >are the particulars: > >... > >make install <--returned the followin

what is the MVC all about

2005-06-14 Thread Ramprasad A Padmanabhan
hi, I have been lately reading a lot of stuff about perl catalyst with MVC I am still not clear about practical use of MVC's Can someone provide pointers about MVC and where they are best used ? Thanks Ram -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: Tabular Data, Group By Functions

2005-06-14 Thread Edward WIJAYA
#!/usr/bin/perl -w use strict; use Data::Dumper; my @all; while (my $line = ) { next if ($line =~ /[A-Za-z]/); push @all, [ split (" ", $line) ]; } # Sort by "In" then "Out" then "Day" increasing my @ByIn_Out_Day = sort {$a->[1] <=> $b->[1] ||

RE: Tabular Data, Group By Functions

2005-06-14 Thread Chris Devers
On Tue, 14 Jun 2005, Vijay Kumar Adhikari wrote: > Thank you. That helped. I get the data as output from another program. > Is [there] any way that I need not save it the output in a temp file > and directly pipe it to DBD:CSV. Hmm. It might be possible, but it's probably more trouble than it's

RE: Tabular Data, Group By Functions

2005-06-14 Thread Thomas Bätzler
Vijay Kumar Adhikari <[EMAIL PROTECTED]> asked: > I have some tab delimited text data like > > IDIn Out Day > 1 5 2 1 > 2 4 9 2 > 3 3 3 2 > 4 6 7 3 > 5 5 0 5 > 6 7 9 3 > 7 8 9

RE: Tabular Data, Group By Functions

2005-06-14 Thread Vijay Kumar Adhikari
Thank you. That helped. I get the data as output from another program. Is their any way that I need not save it the output in a temp file and directly pipe it to DBD:CSV. -Original Message- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 5:52 PM To: Vijay Kumar A

RE: CGI::Session wierd

2005-06-14 Thread Cristi Ocolisan
Yes, I rebuild it & reinstalled it. Still not working... CO -Original Message- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: 14 iunie 2005 14:54 To: Cristi Ocolisan Cc: Perl Beginners List Subject: Re: CGI::Session wierd On Tue, 14 Jun 2005, Cristi Ocolisan wrote: > Does anyone

Re: Tabular Data, Group By Functions

2005-06-14 Thread Chris Devers
On Tue, 14 Jun 2005, Vijay Kumar Adhikari wrote: > I have some tab delimited text data like > > IDIn Out Day > 1 5 2 1 > 2 4 9 2 > 3 3 3 2 > 4 6 7 3 > 5 5 0 5 > 6 7 9 3 > 7 8 9

Tabular Data, Group By Functions

2005-06-14 Thread Vijay Kumar Adhikari
Hi I have some tab delimited text data like ID In Out Day 1 5 2 1 2 4 9 2 3 3 3 2 4 6 7 3 5 5 0 5 6 7 9 3 7 8 9 4 8 6 6 4 I want to perfor

Re: CGI::Session wierd

2005-06-14 Thread Chris Devers
On Tue, 14 Jun 2005, Cristi Ocolisan wrote: > Does anyone know problems between CGI::Session (version 3.95) and perl > 5.8.4? Have you tried rebuilding & reinstalling CGI::Session? -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

RE: Sending SMS

2005-06-14 Thread Cristi Ocolisan
Hi Octavian, There are two mailing lists available for the www-sms project, feel free to use them for all your www-sms related questions (Troubles, Usage questions, Comments, etc). [EMAIL PROTECTED] For www-sms developers. [EMAIL PROTECTED] www-sms CVS commit announcements. Please cons

CGI::Session wierd

2005-06-14 Thread Cristi Ocolisan
Hi all,   I have a strange problem.   I designed and coded a website for a client of mine (www.gimex.ro). This site worked fine for a wile (about 6 months). Then, last week-end I noticed that the site stoped working. I thought a good old hacker messed up some things in my site. Wrong.   T