Re: What's the different of ( -name=>value ) and ( name=>value )

2007-11-08 Thread Dr.Ruud
Panda-X schreef: > I have a script like this : > > sub This { print @_ } > > This ( -x => 100 ) ; # prints -x100 > This ( x => 100 ) ; # prints x100 > > ## > It seems that's something just as is. > However, I saw many packages would like to use : -option => value > So what's the point for thi

Re: Perl Encryption Game Help Please

2007-11-08 Thread Inventor
On Nov 7, 9:03 pm, [EMAIL PROTECTED] (Yitzle) wrote: > If you're using rot13, I'd like to take this oppurtunity to quote > Mendel Cooper, author of The Advanced Bash-Scripting Guide [1], in > regards to rot13 [2] > "This simple-minded cipher can be broken by an average 12-year old > using only penc

Re: About FASTA file

2007-11-08 Thread usenet
On Nov 7, 7:42 pm, [EMAIL PROTECTED] (Auxence Sima) wrote: > a FASTA data file Check out CPAN: http://search.cpan.org/search?query=fasta&mode=all -- The best way to get a good answer is to ask a good question. David Filmer (http://DavidFilmer.com) -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: special character string substitution

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 7, 8:24 pm, [EMAIL PROTECTED] (Charlie Farinella) wrote: > On Wednesday 07 November 2007, [EMAIL PROTECTED] wrote: > > Assuming a Bourne-like shell any of the following should work > > I am using bash, I should have made that clear. > > > perl -w -i -p -e "s/testtext/<% \\$bURL %>/g" test.ht

Re: What's the different of ( -name=>value ) and ( name=>value )

2007-11-08 Thread Chas. Owens
On Nov 7, 2007 9:23 PM, Panda-X <[EMAIL PROTECTED]> wrote: > I have a script like this : > > sub This { print @_ } > > This ( -x => 100 ) ; # prints -x100 > This ( x => 100 ) ; # prints x100 > > ## > It seems that's something just as is. > However, I saw many packages would like to use : -option

Re: What's the different of ( -name=>value ) and ( name=>value )

2007-11-08 Thread Paul Lalli
On Nov 7, 9:23 pm, [EMAIL PROTECTED] (Panda-X) wrote: > I have a script like this : > > sub This { print @_ } > > This ( -x => 100 ) ; # prints -x100 > This ( x => 100 ) ; # prints x100 > > ## > It seems that's something just as is. > However, I saw many packages would like to use : -option => va

Re: DBI prepare syntax

2007-11-08 Thread Mike
That was a rookie mistake :). Double quotes works, thanks Beginner! Beginner <[EMAIL PROTECTED]> wrote: On 8 Nov 2007 at 8:59, Mike wrote: > Hi, > > #Update override_exclude set th_flag="N" to indicate that thesaurus entries > #have been added to sierra2_thesaurus.xml > > use DBI; >

Re: DBI prepare syntax

2007-11-08 Thread Douglas Hunter
Mike wrote: Hi, I have a variable setup as $pid and i've tried to call this in the prepare part of the DBI module but i'm get an "Unknown column $pid" syntax error. Probably $pid was passed as a string instead of a variable inside the prepare (''). Anyone has an idea of how i can fix this?

Re: DBI prepare syntax

2007-11-08 Thread Beginner
On 8 Nov 2007 at 8:59, Mike wrote: > Hi, > > #Update override_exclude set th_flag="N" to indicate that thesaurus entries > #have been added to sierra2_thesaurus.xml > > use DBI; > my $dbh = DBI->connect("dbi:mysql:endeca_tracking",$user,$password); > my $sth = $dbh->prep

Re: DBI prepare syntax

2007-11-08 Thread Mike
Perl is Awsome! Thanks for explaining that basic concept to me Douglas! Douglas Hunter <[EMAIL PROTECTED]> wrote: Mike wrote: > Hi, > > I have a variable setup as $pid and i've tried to call this in the prepare > part of the DBI module but i'm get an "Unknown column $pid" syntax error. > Pr

DBI prepare syntax

2007-11-08 Thread Mike
Hi, I have a variable setup as $pid and i've tried to call this in the prepare part of the DBI module but i'm get an "Unknown column $pid" syntax error. Probably $pid was passed as a string instead of a variable inside the prepare (''). Anyone has an idea of how i can fix this? Thanks. D

Re: Perl Encryption Game Help Please

2007-11-08 Thread yitzle
Is there a website with anything released? You can use tr/// to create a slightly better encyption than the rot13, where A becomes Q, and B becomes X... where the match is randomly assigned. On Nov 8, 2007 12:40 AM, Inventor <[EMAIL PROTECTED]> wrote: > > On Nov 7, 9:03 pm, [EMAIL PROTECTED] (Yitz

Writing DOS CRLF via Unix Perl

2007-11-08 Thread C . R .
I run a script on unix Perl to write a text file. By default, when Perl writes "\n" it writes a line ending sequence which is native to the current OS. How do I force this particular script to always write DOS CRLF line endings? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Splitting two numbers joined by a minus sign

2007-11-08 Thread Demian
Hello, I ran into a problematic file that combined two numeric columns into one: ATOM325 CA GLU B 40 -30.254 72.432-297.620 1.00 10.00 C ATOM326 CA ASP B 41 -28.149 73.031-294.529 1.00 10.00 C ATOM327 CA GLU B 42 -27.716 76.690-295.429 1.

RE: Writing DOS CRLF via Unix Perl

2007-11-08 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: C.R. [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 08, 2007 12:34 > To: beginners@perl.org > Subject: Writing DOS CRLF via Unix Perl > > I run a script on unix Perl to write a text file. By default, > when Perl > writes "\n" it writes a line ending se

Re: Splitting two numbers joined by a minus sign

2007-11-08 Thread Paul Lalli
On Nov 8, 3:32 pm, [EMAIL PROTECTED] (Demian) wrote: > Hello, > > I ran into a problematic file that combined two numeric columns into > one: > > ATOM325 CA GLU B 40 -30.254 72.432-297.620 1.00 > 10.00 C > ATOM326 CA ASP B 41 -28.149 73.031-294.529 1.00 > 10.00

Re: Splitting two numbers joined by a minus sign

2007-11-08 Thread Rodrick Brown
On Nov 8, 2007 3:32 PM, Demian <[EMAIL PROTECTED]> wrote: > Hello, > > I ran into a problematic file that combined two numeric columns into > one: > > ATOM325 CA GLU B 40 -30.254 72.432-297.620 1.00 > 10.00 C > ATOM326 CA ASP B 41 -28.149 73.031-294.529 1.00 > 1

Re: Writing DOS CRLF via Unix Perl

2007-11-08 Thread Tom Phoenix
On 11/8/07, C. R. <[EMAIL PROTECTED]> wrote: > I run a script on unix Perl to write a text file. By default, when Perl > writes "\n" it writes a line ending sequence which is native to the > current OS. How do I force this particular script to always write DOS > CRLF line endings? You can't chang

Re: Splitting two numbers joined by a minus sign

2007-11-08 Thread John W . Krahn
On Thursday 08 November 2007 17:48, Paul Lalli wrote: > On Nov 8, 3:32 pm, [EMAIL PROTECTED] (Demian) wrote: > > > > I ran into a problematic file that combined two numeric columns > > into one: > > > > ATOM325 CA GLU B 40 -30.254 72.432-297.620 1.00 > > 10.00 C > > ATOM3

Re: Splitting two numbers joined by a minus sign

2007-11-08 Thread Rob Dixon
Demian wrote: I ran into a problematic file that combined two numeric columns into one: ATOM325 CA GLU B 40 -30.254 72.432-297.620 1.00 10.00 C ATOM326 CA ASP B 41 -28.149 73.031-294.529 1.00 10.00 C ATOM327 CA GLU B 42 -27.716 76.690-29

Re: Splitting two numbers joined by a minus sign

2007-11-08 Thread Rob Dixon
Paul Lalli wrote: On Nov 8, 3:32 pm, [EMAIL PROTECTED] (Demian) wrote: Hello, I ran into a problematic file that combined two numeric columns into one: ATOM325 CA GLU B 40 -30.254 72.432-297.620 1.00 10.00 C ATOM326 CA ASP B 41 -28.149 73.031-294.529 1.00 1

Re: Perl Encryption Game Help Please

2007-11-08 Thread Inventor
On Nov 8, 1:57 pm, [EMAIL PROTECTED] (Yitzle) wrote: > Is there a website with anything released? > You can use tr/// to create a slightly better encyption than the > rot13, where A becomes Q, and B becomes X... where the match is > randomly assigned. > > -- > - Yitzchok Good Great, thanks for ask

Re: Splitting two numbers joined by a minus sign

2007-11-08 Thread kens
On Nov 8, 3:32 pm, [EMAIL PROTECTED] (Demian) wrote: > Hello, > > I ran into a problematic file that combined two numeric columns into > one: > > ATOM325 CA GLU B 40 -30.254 72.432-297.620 1.00 > 10.00 C > ATOM326 CA ASP B 41 -28.149 73.031-294.529 1.00 > 10.00