Re: close file if it's open

2012-08-28 Thread John W. Krahn
lina wrote: Thanks Jim and John. btw, what does the fileno mean? mean file-not-open? It means file number. For example, STDIN is file number 0, STDOUT is file number 1, STDERR is file number 2 and the next file opened is file number 3, etc. John -- Any intelligent fool can make things bi

Encode::ConfigLocal module

2012-08-28 Thread Irfan Sayed
hi, i need to use Encode::ConfigLocal module when i searched in CPAN, it is not available basically, i am converting perl program to exe using perl2exe it throws following error : C:\Users\bvcontrolbuild\Desktop\p2x-10.40-Win32>perl2exe.exe ..\test3.pl Converting '../test3.pl' to test3.ex

RE: Received ezmlm warning

2012-08-28 Thread Bob McConnell
> From: Paul.G > > Sending this as a test message, I received a warning saying that messages to > me have been bouncing. > > Hopefully, I am still on the mailing list and this is just a glitch. Paul, Yes, it is just a glitch. It has been happening to me occasionally for over two years now. If

Re: Encode::ConfigLocal module

2012-08-28 Thread John SJ Anderson
On Tuesday, August 28, 2012 at 2:30 AM, Irfan Sayed wrote: > Converting '../test3.pl (http://test3.pl)' to test3.exe > Warning: Can't locate Encode/ConfigLocal.pm > at C:\Perl\site\lib\Encode.pm line 60 > @INC = C:\Perl\site\lib, C:\Perl\lib, . > > > please suggest > Looks like reading

many people using same file

2012-08-28 Thread Rajeev Prasad
can multiple users run the same script, at same time, which opens couple of files (file handles) for "reading" only? I would assume yes, but I want to know for sure. thx in advance. Rajeev

Re: many people using same file

2012-08-28 Thread Hal Wigoda
Yes. But there are limits of infinity. --- On Aug 28, 2012, at 10:25 PM, Rajeev Prasad wrote: > can multiple users run the same script, at same time, which opens couple of > files (file handles) for "reading" only? I would assume yes, but I want to > know for sure. > > thx in advance.

how to handle two input files

2012-08-28 Thread Wang, Li
Dear All I have two input files. I want to search an element of File1 in File 2. If the condition matched, print out something. File1: scaffold_1_541600 0.856102487445412 0.295040551475357 0.795878312070658 312 The element used to search is 541600, File2: scaffold_1

Re: how to handle two input files

2012-08-28 Thread Jim Gibson
On Aug 28, 2012, at 9:01 PM, Wang, Li wrote: > Dear All > [problem description snipped] > My script is as follows. And usage is: ./myscript.pl FstFile.txt > annotationFile.txt > > # USAGE: > # unix command line: > # ./searchAndPrint.pl FstFile.name annotationFile.name > > #!/usr/bin/perl -

Re: how to handle two input files

2012-08-28 Thread Leo Susanto
Shouldn't '#!/usr/bin/perl -w' be put on the top of the script? On Tue, Aug 28, 2012 at 10:28 PM, Jim Gibson wrote: > > On Aug 28, 2012, at 9:01 PM, Wang, Li wrote: > >> Dear All >> > > [problem description snipped] > >> My script is as follows. And usage is: ./myscript.pl FstFile.txt >> annotat