RE: [Perl-unix-users] cpan error with 2 different perl version on the same machine.

2004-08-11 Thread Demaerel, Miguel
Hoi I have an example of a install Writing Makefile for Compress::Zlib cp Zlib.pm blib/lib/Compress/Zlib.pm AutoSplitting blib/lib/Compress/Zlib.pm (blib/lib/auto/Compress/Zlib) /usr/local/bin/perl /usr/local/lib/perl5/5.6.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.6.0/ExtUtils/typemap -

RE: [Perl-unix-users] cpan error

2004-08-11 Thread Demaerel, Miguel
Hoi I have try that. It still refer to the "old" version. The path that the module is installing and using is of the old version. Greetings Miguel / (o o) ==oOO==(_)==OOo== Miguel Demaerel System Engineer -

Re: [Perl-unix-users] reading records in a file

2004-08-11 Thread $Bill Luebkert
Mehta, Perdeep wrote: > Super! this works. > > I have one question, what are those spaces in between when I print as below, e.g. > > foreach my $acc (keys %hash){ >if ($acc =~ /1a1.f1b/) { > print "[EMAIL PROTECTED]"; >} > } > produces following output: > 1a1.f1b > TAAATAGAGAGGTTCGA

Re: [Perl-unix-users] reading records in a file

2004-08-11 Thread $Bill Luebkert
Mehta, Perdeep wrote: > Super! this works. > > I have one question, what are those spaces in between when I print as below, e.g. > > foreach my $acc (keys %hash){ >if ($acc =~ /1a1.f1b/) { > print "[EMAIL PROTECTED]"; >} > } > produces following output: > 1a1.f1b > TAAATAGAGAGGTTCGA

RE: [Perl-unix-users] reading records in a file

2004-08-11 Thread Mehta, Perdeep
Super! this works. I have one question, what are those spaces in between when I print as below, e.g. foreach my $acc (keys %hash){ if ($acc =~ /1a1.f1b/) { print "[EMAIL PROTECTED]"; } } produces following output: 1a1.f1b TAAATAGAGAGGTTCGACTCTGCATTTCCCAAATACGTAATGCTTACGGTACACGACCCA A

RE: [Perl-unix-users] reading records in a file

2004-08-11 Thread Thomas, Mark - BLS CTR
> The problem I'm having is that it is skipping the next record > since inner loop read the next start line. I'm sure there > must be a better way. I will appreciate anyone suggesting a solution. Try this: my (%hash, $acc); while (my $line = ) { chomp ($line); $acc = $1 and next

[Perl-unix-users] reading records in a file

2004-08-11 Thread Mehta, Perdeep
Hi, I am looking for a solution to read a file with records that do not have end of each record delimiter. Here is an example, File: >1a1.f1b bases 100 to 234 (SL to QR) TAAATAGAGAGGTTCGACTCTGCATTTCCCAAATACGTAATGCTTACGGTACACGACCCA AGCTCTCTGCTTGAATCCCAAATCTGAGCGGACAGATGAGCGCAGAGGACAG GTT

Re: [Perl-unix-users] getting the user uid

2004-08-11 Thread Jeff D
The short answer would be to set a variable to the output of the command using backticks. ie: $id_info = `/path/to/id`; chomp $id_info; And then using various splits, you will be able to get at individual pieces of the return. HTH JD --- Márcio_Oliveira <[EMAIL PROTECTED]> wrote: > hi!

[Perl-unix-users] getting the user uid

2004-08-11 Thread Márcio Oliveira
hi!      I need to get the user information provide by the linux id comand in a perl script. how a can do that?   ex.   linux prompt# id root   uid=0(root) gid=0(root) groups=0(root),1001(teste) <--- I need thid information.   thank's   Marcio Oliveira LPIC-1     __

Re: [Perl-unix-users] cpan error

2004-08-11 Thread Jeff D
Miguel, The installation location for perl mods is actually baked into the perl package that you are using (various Config.pm's). I have two separate versions of perl (5.005.03 and 5.8.3) and use the cpan shell to download/install perl mods. If you go this route and just modify your path to pick

[Perl-unix-users] cpan error

2004-08-11 Thread Demaerel, Miguel
Hoi I have a problem with compiling ppm packages. I have 2 perl versions (5.6.1) and 5.8.5 (just installed). I want to install packages on the 5.8.5 version. cpan install yyy:zzz The compile is always looking to the 5.6.1 libaries. How can I compile it in the new version? Thanks. Greetings M

[Perl-unix-users] Net::SMTP Process choking up on large file.

2004-08-11 Thread Davidson, Brett (Managed Services)
Title: Message I'm attempting to send the contents of a 7000 line array to an SMTP server via Net::SMTP. This starts choking at around line 4100. It occurs whether I send each line individually within a loop or the entire array at once. The subroutine code I'm using is absolutely identical