Hello all,
I posted this question in the bioperl forum- no replies after a day, so
let's see if anyone here can help.
I wrote a short test script for the Bio::DB::Taxonomy module:
#!/usr/bin/perl -w
use strict;
use Bio::DB::Taxonomy;
my
On Aug 16, 2011 11:02 AM, ANJAN PURKAYASTHA anjan.purkayas...@gmail.com
wrote:
I wrote a short test script for the Bio::DB::Taxonomy module:
#!/usr/bin/perl -w
use strict;
use Bio::DB::Taxonomy;
my ($nodesfile, $namesfile)= ('nodes.dmp',
On Tue, Aug 16, 2011 at 11:00 AM, ANJAN PURKAYASTHA
anjan.purkayas...@gmail.com wrote:
print($bacteria-id\t$bacteria-name\n);
...
and the following ouput:
Bio::Taxon=HASH(0x158dbe0)-id Bio::Taxon=HASH(0x158dbe0)-name
You appear to intend to call methods on $bacteria, but since you're
within
Without a root permission, I can't install perl module through normal way
such as CPAN. But I have to use this module(XML::Quote).
I have tried to copy the .pm file to my own lib directory directly, but it
says can't locate loadable perl module .
Is there any other way to install perl modules
I believe you can sort an array like so:
sort @my_array;
I need to sort a string though.
I have $a_string that contains:
4565 line1
2345 line2
500 line3
etc.
Obviously \n is at end of every line in the string. I need it sorted.
How would I approach this?
--
To unsubscribe, e-mail:
sort like string or like numbers?
On Tue, Aug 16, 2011 at 18:04, Matt lm7...@gmail.com wrote:
I believe you can sort an array like so:
sort @my_array;
I need to sort a string though.
I have $a_string that contains:
4565 line1
2345 line2
500 line3
etc.
Obviously \n is at end of every
Look to local::lib in http://search.cpan.org/~apeiron/local-lib/lib/local/lib.pm
On Tue, Aug 16, 2011 at 18:02, universe sheep xydh...@gmail.com wrote:
Without a root permission, I can't install perl module through normal way
such as CPAN. But I have to use this module(XML::Quote).
I have
If you can justify the need for it and the importance thereof, surely your
Linux/Unix Admin can install it
for you or provide you with the necessary sudo access so you can do it
yourself. That probably
depends on various factors, ie if that's a production system, if change
control needs to take
On Tue, Aug 16, 2011 at 12:04 PM, Matt lm7...@gmail.com wrote:
I believe you can sort an array like so:
sort @my_array;
I need to sort a string though.
I have $a_string that contains:
4565 line1
2345 line2
500 line3
etc.
Obviously \n is at end of every line in the string. I need it
Matt wrote:
I believe you can sort an array like so:
sort @my_array;
That should be:
@my_array = sort @my_array;
I need to sort a string though.
I have $a_string that contains:
4565 line1
2345 line2
500 line3
etc.
Obviously \n is at end of every line in the string. I need it sorted.
The problem is :admin is not in now.
2011/8/17 Wernher Eksteen wekst...@gmail.com
If you can justify the need for it and the importance thereof, surely your
Linux/Unix Admin can install it
for you or provide you with the necessary sudo access so you can do it
yourself. That probably
depends
What is the correct way to quickly assign the result of a regex against
a cmdline arg into a new variable:
my $var = ($ARGV[0] =~ s/(.*)foo/$1/i);
Obviously that's incorrect but is there a quick way without intermediate
assignment?
Thanks!
jlc
--
To unsubscribe, e-mail:
On Tue, Aug 16, 2011 at 8:27 PM, Joseph L. Casale jcas...@activenetwerx.com
wrote:
What is the correct way to quickly assign the result of a regex against
a cmdline arg into a new variable:
my $var = ($ARGV[0] =~ s/(.*)foo/$1/i);
Obviously that's incorrect but is there a quick way without
From: Joseph L. Casale jcas...@activenetwerx.com
What is the correct way to quickly assign the result of a regex against
a cmdline arg into a new variable:
my $var = ($ARGV[0] =~ s/(.*)foo/$1/i);
Obviously that's incorrect but is there a quick way without intermediate
assignment?
Thanks!
jlc
Yes, you can use:
( my $var = $ARGV[0] ) =~ s/(.*)foo/$1/i;
Rob/Octavian,
Thanks for the quick help!
jlc
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
foreach $str1 (@arr1){
foreach (@arr2) {
@arr3 = split(/ /,$_);
print array = @arr3 element0 = $arr3[0] element1 = $arr3[1]; #this
is just to check, it showing values 0 and 1 as correctly assigned
print $str1;
}
}
arr1 contains lines like: (which will be values of str1 with each
Joseph L. Casale wrote:
What is the correct way to quickly assign the result of a regex against
a cmdline arg into a new variable:
my $var = ($ARGV[0] =~ s/(.*)foo/$1/i);
my ( $var ) = $ARGV[0] =~ /(.*)foo/i;
John
--
Any intelligent fool can make things bigger and
more complex... It takes
On Aug 16, 2011 9:48 PM, John W. Krahn jwkr...@shaw.ca wrote:
Joseph L. Casale wrote:
What is the correct way to quickly assign the result of a regex against
a cmdline arg into a new variable:
my $var = ($ARGV[0] =~ s/(.*)foo/$1/i);
my ( $var ) = $ARGV[0] =~ /(.*)foo/i;
IIRC, that
At 11:43 PM -0400 8/16/11, shawn wilson wrote:
On Aug 16, 2011 9:48 PM, John W. Krahn jwkr...@shaw.ca wrote:
Joseph L. Casale wrote:
What is the correct way to quickly assign the result of a regex against
a cmdline arg into a new variable:
my $var = ($ARGV[0] =~ s/(.*)foo/$1/i);
my
19 matches
Mail list logo