Re: print Greek small letter alpha in html

2006-06-14 Thread may sandi
Hi, Does anybody know how can run a perl file from java? I already tried with following command: try { Runtime r = Runtime.getRuntime(); String cmdLine[] = { "/usr/bin/perl","c:/link41a/linkparser2.pl"}; r.exec(cmdLine); But, I doesn't work. Currently I am using jdk 1.4. thanks in

Re: print Greek small letter alpha in html

2006-06-14 Thread Ken Perl
thanks, it works. On 6/15/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: On Thu, 2006-15-06 at 10:04 +0800, Ken Perl wrote: > hi, > To print Greek small letter alpha in a html page, I tried to print > this in perl but not work, > B1; > > could someone give me some clue how to make this work?

Re: print Greek small letter alpha in html

2006-06-14 Thread Mr. Shawn H. Corey
On Thu, 2006-15-06 at 10:04 +0800, Ken Perl wrote: > hi, > To print Greek small letter alpha in a html page, I tried to print > this in perl but not work, > B1; > > could someone give me some clue how to make this work? Yes ... I think so. How about: α -- __END__ Just my 0.0002 million d

print Greek small letter alpha in html

2006-06-14 Thread Ken Perl
hi, To print Greek small letter alpha in a html page, I tried to print this in perl but not work, B1; could someone give me some clue how to make this work? -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/>

Re: Diff two files

2006-06-14 Thread Jeff Peng
> for practice I tried to run your script, but i doesn't work for me it > return an empty line but i pretty sure there's a difference between my > two text files. Hello.It's a simple comparing from the first file to the second file. Given two example files here and run the script to get the resu

Re: Diff two files

2006-06-14 Thread joseph
""Jeff Peng"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How about your two files?I should give a general way for comparing two > files: > > use strict; > > open TXT1, "1.txt" or die "$!"; > open TXT2, "2.txt" or die "$!"; > my %diff; > > $diff{$_}=1 while (); > > while(){ > p

Locale::Maketext fail_with() method

2006-06-14 Thread JupiterHost.Net
Howdy all :) I'm trying to workup a nice Locale::Maketext fail_with() method, and having a bit of trouble with the last comment in the code below: $lh->fail_with(sub { my ($lh, $key, @args) = @_; # do db lookup and return that if it was not in the db (IE !undef) my $db_version = _

RE: A loop to parse a large text file--output is empty!

2006-06-14 Thread Timothy Johnson
-Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 8:02 AM To: Timothy Johnson; Michael Oldham; [EMAIL PROTECTED] Org Subject: RE: A loop to parse a large text file--output is empty! >> From:"Timothy Johnson" <[EMAIL PROTECTED]> >>print

Re: I/O Question

2006-06-14 Thread Mr. Shawn H. Corey
On Wed, 2006-14-06 at 10:58 -0400, Doug Adams wrote: > I'm a first time perl user, jumping right into cgi on a mac, and I can't > for the > life of me figure out how to specify file paths other than to the > CGI-Executables folder (where my program is), or any subdirectory thereof. I > have been b

Re: I/O Question

2006-06-14 Thread Tom Phoenix
On 6/14/06, Doug Adams <[EMAIL PROTECTED]> wrote: I'm a first time perl user, jumping right into cgi on a mac, and I can't for the life of me figure out how to specify file paths other than to the CGI-Executables folder (where my program is), or any subdirectory thereof. Specify a file path w

RE: Using Net::SSH::Perl to execute a set of commands

2006-06-14 Thread Oyler, Nathan
It sounded like that to me as well. I had the same problem, and found a bug listed for it on Net::SSH::Perl's rt bugs. But no answer. Asked around the perl irc community, and someone suggested Math::BigInt::GMP was required, or he had the same problem. He explained to me in depth why it caused th

Re: DESTROY executed twice

2006-06-14 Thread Tom Phoenix
On 6/13/06, Glaessl, Danilo <[EMAIL PROTECTED]> wrote: sub DESTROY { exit($exit_code); } I don't think that exit() will do what you might expect, when called from DESTROY. At that point, the DESTROY hasn't finished, so your object is still alive, and thus it will need to be

Re: AW: DESTROY executed twice

2006-06-14 Thread Randal L. Schwartz
By the way, your "AW" is incorrect. The internet standard is "Re:", in spite of Microsoft's intentions to mangle the net by "localizing" a convention that needs no localization. (It's a latin word, not an English abbreviation.) > "Glaessl" == "Glaessl, Danilo" <[EMAIL PROTECTED]> writes: G

Re: Help Required on the Below Script

2006-06-14 Thread JupiterHost.Net
Hello, use strict; use warnings; Excellent use of those :) my $file_name=".txt"; open(FILE,"$file_name") || die "Not been Accessed"; Good that you checked for failure, why not also report the error ... Also, don't double quote strings that have nothing to be interpolated or are

Re: I/O Question

2006-06-14 Thread Jeff Peng
On Wed, 14 Jun 2006 10:58:50 -0400, "Doug Adams" <[EMAIL PROTECTED]> said: > I'm a first time perl user, jumping right into cgi on a mac, I'm sorry for my first message.I didn't see your problem clearly,it's MAC OS,not Unix,sorry for it again. -- Jeff Peng [EMAIL PROTECTED] -- http://www.

Re: I/O Question

2006-06-14 Thread Jeff Peng
Hello, What OS do you use?I suppose than you run CGI scripts under Unix,then you could specify the path simply as: my $path='/your/path/'; But I would remind you that this path would be accessable to your CGI programs.In general,CGI is run by Apache which is run as 'nobody' user,so this path shou

I/O Question

2006-06-14 Thread Doug Adams
I'm a first time perl user, jumping right into cgi on a mac, and I can't for the life of me figure out how to specify file paths other than to the CGI-Executables folder (where my program is), or any subdirectory thereof. I have been bashing my head against my desk for the last couple days and I c

Re: Help Required on the Below Script

2006-06-14 Thread Mazhar
Thanks everybody for the support.. it is working fine.. Regards Mazhar On 6/14/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Mazhar wrote: > Hello, Hello, > I am writing perl on windows installing Activestate Perl and the code is > reading a text file and processing it, > > the code what i

Re: Help Required on the Below Script

2006-06-14 Thread John W. Krahn
Mazhar wrote: > Hello, Hello, > I am writing perl on windows installing Activestate Perl and the code is > reading a text file and processing it, > > the code what i use is... > > ## > use strict; > use warnings; > > my $file_name=".txt"; > > open(FILE,

Re: Help Required on the Below Script

2006-06-14 Thread Mr. Shawn H. Corey
On Wed, 2006-14-06 at 15:59 +0400, Mazhar wrote: > Hello, > > I am writing perl on windows installing Activestate Perl and the code is > reading a text file and processing it, > > the code what i use is... > > ## > use strict; > use warnings; > > my $file_name="X

Re: Help Required on the Below Script

2006-06-14 Thread Prabu Ayyappan
On 6/14/06, Mazhar <[EMAIL PROTECTED]> wrote: Hello, I am writing perl on windows installing Activestate Perl and the code is reading a text file and processing it, the code what i use is... ## use strict; use warnings; my $file_name=".txt"; open(FILE

Help Required on the Below Script

2006-06-14 Thread Mazhar
Hello, I am writing perl on windows installing Activestate Perl and the code is reading a text file and processing it, the code what i use is... ## use strict; use warnings; my $file_name=".txt"; open(FILE,"$file_name") || die "Not been Accessed"; while

Re: Diff two files

2006-06-14 Thread Jeff Peng
How about your two files?I should give a general way for comparing two files: use strict; open TXT1, "1.txt" or die "$!"; open TXT2, "2.txt" or die "$!"; my %diff; $diff{$_}=1 while (); while(){ print unless $diff{$_}; } close TXT2; close TXT1; As you see,use a hash to store the second fil

Re: CGI script not showing the textbox

2006-06-14 Thread Chad Perrin
On Wed, Jun 14, 2006 at 09:50:19AM +0530, Nath, Alok (STSD) wrote: > Hi, > Need some help to run this script. [snip] > print q("Please select: ",textfield ("flavour", "mint")) ; [snip] > What I was expecting is a textbox, instead of this string. > "Please select:

Re: Diff two files

2006-06-14 Thread Paul Johnson
On Wed, Jun 14, 2006 at 01:38:23PM +0530, Preethi wrote: > Hi All, Hello. > I'm a newbie in Perl. I was try to achive to diff two files using perl on > windows. > > Please suggest me how should I do this! Go to search.cpan.org Search for diff. Find a module that looks like it would do this.

Diff two files

2006-06-14 Thread Preethi
Hi All, I'm a newbie in Perl. I was try to achive to diff two files using perl on windows. Please suggest me how should I do this! Thanks, Preethi

Re: CGI script not showing the textbox

2006-06-14 Thread Prabu Ayyappan
On 6/14/06, Nath, Alok (STSD) <[EMAIL PROTECTED]> wrote: Hi, Need some help to run this script. #!/usr/bin/perl -w use CGI qw(:standard); my $favourite = param("flavour") ; print header; # here's a comment. print the header print start_html("Alok's Page") , h1(" Paragraph...

Re: A loop to parse a large text file--output is empty!

2006-06-14 Thread Muma W.
Michael Oldham wrote: Dear all, I am a Perl newbie struggling to accomplish a conceptually simple bioinformatics task. I have a single large file containing about 200,000 DNA probe sequences (from an Affymetrix microarray), each of which is accompanied by a header, like so (this is in FASTA for

AW: DESTROY executed twice

2006-06-14 Thread Glaessl, Danilo
To my mind, the following militates against your theory: The parent only forks the child processes and terminates afterwards, it does not create objects. Objects are created by its child processes only. So I expect the objects to be destroyed only when the child processes terminate. In addition,