AW: Edit text file using perl script

2009-07-06 Thread Thomas Bätzler
Alpesh Naik asked: > I am trying to edit the text file using perl script. > i want to replace a particular text of file with new text. > > but the problem is that the new text appeared at end of file; > > How can i solve this problem, > pls. help We can help you much better if we can a

Re: Edit text file using perl script

2009-07-06 Thread Chas. Owens
On Tue, Jul 7, 2009 at 02:25, Alpesh Naik wrote: > Hi all, > > I  am trying to edit the text file using perl script. > i want to replace a particular text of file with new text. > > but the problem is that the new text appeared at end of file; > > How can i solve this problem, > pls. help >

Edit text file using perl script

2009-07-06 Thread Alpesh Naik
Hi all, I am trying to edit the text file using perl script. i want to replace a particular text of file with new text. but the problem is that the new text appeared at end of file; How can i solve this problem, pls. help Regards, Alpesh.

Re: Hello there

2009-07-06 Thread Dave Tang
On Tue, 07 Jul 2009 08:19:50 +1000, Emanuele Osimo wrote: Hello there, I'm a biologist and I'm trying to start using bioperl for bioinformatic purposese but I've never programmed. Could you suggest me something to read to start from 0 level? Have you looked at Beginning Perl for Bioinformat

Re: Hello there

2009-07-06 Thread Steve Bertrand
Emanuele Osimo wrote: > Hello there, > I'm a biologist and I'm trying to start using bioperl for bioinformatic > purposese but I've never programmed. > Could you suggest me something to read to start from 0 level? > > In the meantime, I installed bioperl and I'm doing some little trials to get > t

Re: Hello there

2009-07-06 Thread Jim Gibson
On 7/6/09 Mon Jul 6, 2009 3:19 PM, "Emanuele Osimo" scribbled: > Hello there, > I'm a biologist and I'm trying to start using bioperl for bioinformatic > purposese but I've never programmed. > Could you suggest me something to read to start from 0 level? See the FAQ 2 for Perl. Try this at a c

Hello there

2009-07-06 Thread Emanuele Osimo
Hello there, I'm a biologist and I'm trying to start using bioperl for bioinformatic purposese but I've never programmed. Could you suggest me something to read to start from 0 level? In the meantime, I installed bioperl and I'm doing some little trials to get to know something: I would like to cr

Re: File::Find with chmod trouble debugging

2009-07-06 Thread Telemachus
On Mon Jul 06 2009 @ 3:31, Harry Putnam wrote: > Thanks to all ... > Now I'm curious about something else: > > Is the mode in a stat(file) readout something still different > than octal or decimal? As John answered, there's more there than just the permissions. If you check perldoc -f stat, ther

Re: File::Find with chmod trouble debugging

2009-07-06 Thread John W. Krahn
Harry Putnam wrote: Thanks to all ... Now I'm curious about something else: Is the mode in a stat(file) readout something still different than octal or decimal? I see `33261' show up in the `mode' slot on a file with 755 permissions (from perldoc -f stat: [...] ($dev,$ino,$mode,$nli

Re: File::Find with chmod trouble debugging

2009-07-06 Thread Harry Putnam
Thanks to all ... Now I'm curious about something else: Is the mode in a stat(file) readout something still different than octal or decimal? I see `33261' show up in the `mode' slot on a file with 755 permissions (from perldoc -f stat: [...] ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$si

Re: Need help w/ substitute ie. s/x/y/

2009-07-06 Thread Dennis G. Wicks
Eric Veith wrote the following on 07/06/2009 04:35 AM: Dennis, Gunnar is right, you're misusing character classes. A correct regular expression could look like this (using /x and Perl 5.10's named capture buffers): /(?]+>) (?]+>) \s, (?]+>]+>) (?[^<]+) /x I did not test that, but I guess you

Re: how to choose a threading or forking http server module from CPAN

2009-07-06 Thread Randal L. Schwartz
> ""XUFENG"" == "XUFENG" writes: "XUFENG"> Hi, "XUFENG"> I plan to implement a threading or forking http server to receive client request,after handling the requested url,it gives out new urls. "XUFENG"> What is the better module to use? "XUFENG"> Thank you for any suggest

Re: Redirecting STDOUT and STDERR for system()

2009-07-06 Thread Eric Veith
That works like a charm -- thanks! "Chas. Owens" wrote on 07/05/2009 03:57:34 AM: > From: > > "Chas. Owens" > > To: > > Eric Veith/Germany/i...@ibmde > > Cc: > > beginners@perl.org > > Date: > > 07/05/2009 03:58 AM > > Subject: > > Re: Redirecting STDOUT and STDERR for system() > > On Thu, Jul

Re: File::Find with chmod trouble debugging

2009-07-06 Thread Telemachus
On Mon Jul 06 2009 @ 7:00, Harry Putnam wrote: > Can anyone tell me how printing of $mode = 0755 turns into 493? Yup: what's in $mode is an octal number. Its decimal equivalent is 493. What you really want to print out is the string '0755', but the string and the octal number are not the same thi

Re: File::Find with chmod trouble debugging

2009-07-06 Thread Chas. Owens
On Mon, Jul 6, 2009 at 08:00, Harry Putnam wrote: snip > Can anyone tell me how printing of $mode = 0755 turns into 493? snip >  my $mode = 0755; snip >             print "hpdb chmod $mode  $fname\n"; snip 0755 is 493. More specifically they are two representations of the same number: the first i

AW: File::Find with chmod trouble debugging

2009-07-06 Thread Thomas Bätzler
Harry Putnam asked: > The script below is my first usage of perls `chmod', but it appears to > be in keeping with the info at perldoc -f chmod. > > But somehow in the print of $mode it turns into 493... even though it > is set to 755. Its just the print though... the actual chmod appears > to be

File::Find with chmod trouble debugging

2009-07-06 Thread Harry Putnam
The script below is my first usage of perls `chmod', but it appears to be in keeping with the info at perldoc -f chmod. But somehow in the print of $mode it turns into 493... even though it is set to 755. Its just the print though... the actual chmod appears to be working as expected. Can anyon

Re: how to choose a threading or forking http server module from CPAN

2009-07-06 Thread Jeff Pang
2009/7/6 XUFENG : > Hi, >        I plan to implement a threading or forking http server to receive > client request,after handling the requested url,it gives out new urls. >        What is the better module to use? A perl module or httpd module? for perl module, could use CGI.pm and look for redi

how to choose a threading or forking http server module from CPAN

2009-07-06 Thread XUFENG
Hi, I plan to implement a threading or forking http server to receive client request,after handling the requested url,it gives out new urls. What is the better module to use? Thank you for any suggestions. -- XUFENG 2009-07-06 -- To unsubsc

Re: Need help w/ substitute ie. s/x/y/

2009-07-06 Thread Eric Veith
Dennis, Gunnar is right, you're misusing character classes. A correct regular expression could look like this (using /x and Perl 5.10's named capture buffers): /(?]+>) (?]+>) \s, (?]+>]+>) (?[^<]+) /x I did not test that, but I guess you'll get the meaning. :-) HTH -- Eric "Den