Re: simplest of simple web servers

2007-11-07 Thread Octavian Rasnita
Hi, Search with Google for "microweb". It is a web server that can run on a CD ROM, and it can use a database, perl, php and many other things like that. Octavian - Original Message - From: "Willy West" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 07, 2007 3:38 AM Subject: sim

Perl Encryption Game Help Please

2007-11-07 Thread Inventor
Hi, First an introduction and then a few questions. I have a concept for a game that came to me in a dream. It involves writing code and building hardware to complete various objectives. The game is called HSTechSpy at the moment, and it will be open source with profit derived by selling the har

How to convert month in name in to digit number

2007-11-07 Thread sivasakthi
Hi All, How to convert month in name in to digit number, for example the month is Apr then converted in to 04.. how to do that?? Thanks, Siva

Re: How to convert month in name in to digit number

2007-11-07 Thread Jeff Pang
--- sivasakthi <[EMAIL PROTECTED]> wrote: > Hi All, > > How to convert month in name in to digit number, for example the month > is Apr then converted in to 04.. how to do that?? > > The easy way is to use a hash, %mon = ('Jan' => '01', 'Feb' => '02', ... ); then

Re: How to convert month in name in to digit number

2007-11-07 Thread useperl-jeff
--- sivasakthi <[EMAIL PROTECTED]> wrote: > Hi All, > > How to convert month in name in to digit number, for example the month > is Apr then converted in to 04.. how to do that?? > > The easy way is to use a hash, %mon = ('Jan' => '01', 'Feb' => '02', ... ); then

Re: Issue while calling the subroutine dynamically

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 6, 6:08 pm, [EMAIL PROTECTED] (Chas. Owens) wrote: > On 11/6/07, Ab <[EMAIL PROTECTED]> wrote: > snip> Now, The thing I am trying to achieve is to call abhinav::test::test2 > > on the runtime. > > ie, I am passing the value 'abhinav::test::test2' in a variable, and > > trying to exec in the

Re: special character string substitution

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 5:43 pm, [EMAIL PROTECTED] (Charlie Farinella) wrote: > Hi, > > I'm trying to substitute a string with a Mason variable in a bunch of > files and not having any luck. For instance I want to change the > string 'testtext' to '<% $bURL %>' in a file: > > perl -w -i -p -e "s/testtext/'<% \$

Re: Perl Encryption Game Help Please

2007-11-07 Thread Inventor
On Nov 7, 10:59 am, [EMAIL PROTECTED] (Tom Phoenix) wrote: > > Hope this helps! > > --Tom Phoenix > Stonehenge Perl Training Yes, that helped a great deal, thanks! I should mention that the emphasis will be on gaining computer skills, setting up freeware tools, and also on defensive measures such

Re: Reading the next line in a file from the current position

2007-11-07 Thread Jeff Pang
--- Praveena Vittal <[EMAIL PROTECTED]> wrote: > Hi all, > > I like to know how can we read a line next to the current position in > a file . > Hi, in scalar context will read next line.ie, open FD,"file" or die $!; for (1..3); # now you're in No.3 line,again we say: scalar ; # no you

special character string substitution

2007-11-07 Thread Charlie Farinella
Hi, I'm trying to substitute a string with a Mason variable in a bunch of files and not having any luck. For instance I want to change the string 'testtext' to '<% $bURL %>' in a file: perl -w -i -p -e "s/testtext/'<% \$bURL %>'/g" test.html ..substitutes '<% %>' I've tried quotes, double q

Re: special character string substitution

2007-11-07 Thread John W . Krahn
On Wednesday 07 November 2007 09:43, Charlie Farinella wrote: > Hi, Hello, > I'm trying to substitute a string with a Mason variable in a bunch of > files and not having any luck. For instance I want to change the > string 'testtext' to '<% $bURL %>' in a file: > > perl -w -i -p -e "s/testtext/'

Re: special character string substitution

2007-11-07 Thread Charlie Farinella
On Wednesday 07 November 2007, [EMAIL PROTECTED] wrote: > On Nov 7, 5:43 pm, [EMAIL PROTECTED] (Charlie > Farinella) wrote: > > I'm trying to substitute a string with a Mason variable in a bunch of > > files and not having any luck. For instance I want to change the > > string 'testtext' to '<%

Reading the next line in a file from the current position

2007-11-07 Thread Praveena Vittal
Hi all, I like to know how can we read a line next to the current position in a file . Regards, Praveena -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Reading the file using tell and seek method

2007-11-07 Thread Tom Phoenix
On 11/6/07, sivasakthi <[EMAIL PROTECTED]> wrote: > I have one requirement, the file content is following, it is a dynamic > file, > > 1194240905.451105 127.0.4.56 TCP_MISS/200 2853 GET > cache_object://localhost/info - NONE/- text/plain > 1194240905.452 0 127.0.0.1 TCP_MISS/200 2853 GET

Re: Perl Encryption Game Help Please

2007-11-07 Thread Tom Phoenix
On 11/6/07, Inventor <[EMAIL PROTECTED]> wrote: > I would like to code up a test game in which the user must write a > simple set of nested for loops that try every password code against a > perl guardian script until they get the right password. To accomplish > this, I need one perl script that

Re: special character string substitution

2007-11-07 Thread Tom Phoenix
On 11/7/07, Charlie Farinella <[EMAIL PROTECTED]> wrote: > perl -w -i -p -e "s/testtext/'<% \$bURL %>'/g" test.html > > ..substitutes '<% %>' And yet, it didn't give you any warning? It sure looks like you're asking for warnings. I get two warnings, when I change your code thusly: $ perl -w

Re: special character string substitution

2007-11-07 Thread Chas. Owens
On 11/7/07, Charlie Farinella <[EMAIL PROTECTED]> wrote: snip > perl -w -i -p -e "s/testtext/'<% \$bURL %>'/g" test.html snip In this case the text that Perl sees is BEGIN { $^I = ""; } BEGIN { $^W = 1; } LINE: while (defined($_ = )) { s/testtext/'<% $bURL %>'/g; } continue { print $_; }

Re: Perl Encryption Game Help Please

2007-11-07 Thread yitzle
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 pencil and paper." [1] http://tldp.org/LDP/abs/html/index.html [2]

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

2007-11-07 Thread Jeff Pang
--- 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 => value > So w

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

2007-11-07 Thread Panda-X
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 this style ? Is there any specific reason f

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

2007-11-07 Thread Panda-X
2007/11/8, Jeff Pang <[EMAIL PROTECTED]>: > > > --- 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,

String Creation

2007-11-07 Thread AndrewMcHorney
Hello Here is the contents of the string I want to create: "dir c: \ /S" so I can get a complete list of all the files in a disk partition. How can I create this string? Andrew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.

Re: String Creation

2007-11-07 Thread Jeff Pang
-Original Message- >From: AndrewMcHorney <[EMAIL PROTECTED]> >Sent: Nov 7, 2007 2:15 PM >To: beginners@perl.org >Subject: String Creation > >Hello > >Here is the contents of the string I want to create: > >"dir c: \ /S" so I can get a complete list of all the files in a disk >partition.

About FASTA file

2007-11-07 Thread Auxence Sima
i have Sequence Data in a file that i named " OUTPUT.TXT",and hereis my question. I would like to create a FASTA data file, and i wonder how to process. do i have to just take out the info inside the OUTPUT.TXT, and keep only Sequences, and then put them ina FASTA format?? DO i keep the sam

Re: String Creation

2007-11-07 Thread Panda-X
2007/11/7, AndrewMcHorney <[EMAIL PROTECTED]>: > > Hello > > Here is the contents of the string I want to create: > > "dir c: \ /S" so I can get a complete list of all the files in a disk > partition. How can I create this string? > > Andrew > Do you mean C:\ or C: \ ? I see a space here. Since yo