Remo Sanges wrote:
Manish Uskaikar wrote:
command line:
$perl man.pl manish
perl script
#!/usr/bin/perl;
($inputfile) = @ARGS;
Could anyone tell me how to accept the commandline parametes this
does not seem to work.
@ARGV and not @ARGS is an array
so you have to use it by element
Manish Uskaikar wrote:
command line:
$perl man.pl manish
perl script
#!/usr/bin/perl;
($inputfile) = @ARGS;
Could anyone tell me how to accept the commandline parametes this does not seem
to work.
@ARGV and not @ARGS is an array
so you have to use it by element.
In your case the name of
Manish Uskaikar wrote:
command line:
$perl man.pl manish
perl script
#!/usr/bin/perl;
($inputfile) = @ARGS;
Could anyone tell me how to accept the commandline parametes this does not seem
to work.
@ARGV and not @ARGS is an array
so you have to use it by element.
In your case the name of
On Feb 1, 2005, at 1:53 PM, Mark Martin wrote:
Hi,
okay - straight out of the coobook :
my @different = ()
foreach (keys %hash1)
{
delete $hash1{$_} unless exists $hash2$_};
push(@this_not_that,$_) unless exists $registered{$_};
}
easy to remove the different key from hash one and record the r
On Feb 1, 2005, at 11:21 AM, Mariano Cunietti wrote:
Hi,
can anybody address me to online resources to learn how to connect to a
PostgreSQL DB server through a Perl script?
http://www.perl.com/pub/a/1999/10/DBI.html
http://search.cpan.org/~timb/DBI/DBI.pm
http://search.cpan.org/~rudy/DBD-Pg-1.32/Pg
On Nov 17, 2004, at 3:20 PM, Anish Kumar K. wrote:
I have a PL file in say /home/anish
And in the program I have specified the $BASE_ROOT=/home/anish
suppose i move the program to /home/abctest
The problem I am facing is the directory structure is failingas in
the PL files it ishardcoded as /h
On Oct 19, 2004, at 5:26 PM, A Taylor wrote:
the line: $line =~ tr/images\//..\/..\/images\// is where I am getting
stuck
the 'tr' operator work on $line changing every character in the first
expression
with the corresponding one in the second, it don't change an entire
expression
in the first w
On Sep 14, 2004, at 12:15 AM, Manish wrote:
follow what it says I get the following error:
Undefined subroutine &main::complete called at try.pl
line 14.
Any pointers to docs are appreciated.
Never used this module, but when I get this kind of
error is because I haven't load functions in the 'rigth
On Sep 7, 2004, at 3:15 AM, Edward WIJAYA wrote:
How can I take out/splice(?) the element of that hash
that start with '1' and store it into another
hash. So in the end I will have two hashes:
%myNEWhash = { '1 NO MOTIF' => 'ATGGTTAGGG'};
and the current becomes:
%myhash = {
'4 atc' => '
On Jul 23, 2004, at 11:42 AM, Jaffer Shaik wrote:
$str = "abckdweqadidkisdikda";
In the above string, I want to count the occurrences of character 'a',
i.e I should get count of a = 7.
How can i achieve this in Perl.
@a=$str=~m/a/g;
print scalar(@a)."\n";
Remo
--
To unsubscribe, e-mail: [EMAIL
On Jun 25, 2004, at 8:50 PM, Wiggins d Anconia wrote:
I'm in a situation wherein I want to brush up on my 'Perl', but have
no personal computer. I'm currently reading my way through "Learning
Pearl", but can't do the exercises because I only have access to
'Windows' machines that do not have Perl i
On May 19, 2004, at 10:14 AM, Jason Dusek wrote:
Is there an easy way to get all the unique elements of an array? i.e.
is there some module or function that does that sort of thing?
It's a very common problem...
a simple solution is to use hash:
#!/usr/bin/perl
use strict;
use warnings;
my @array
you can solve in your script:
#!/usr/bin/perl
use lib '/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi';
use Fcntl;
.
or setting the environmental variable PERL5LIB.
Remo
On Apr 28, 2004, at 2:19 PM, Mauro wrote:
Hi all, I'm tring to load a module with:
use
Yes excuse my typo!!!
Remo Sanges
On Mar 11, 2004, at 11:37 AM, Ralf Schaa wrote:
Remo Sanges wrote:
$target = (@digits % 2) ? ($digits[int(@digits/2)]) :
([EMAIL PROTECTED]/2-1]);
if ($target = (@digits % 2)) {
($digits[int(@digits/2)]);
}
else {
([EMAIL PROTECTED]/2-1]);
}
isn
arget = (@digits % 2)) {
($digits[int(@digits/2)]);
}
else {
([EMAIL PROTECTED]/2-1]);
}
Regards
Remo Sanges
BioGeM - Tigem
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
cpan o conf init
On Feb 4, 2004, at 8:36 PM, Hemond, Steve wrote:
Hi folks,
For some reason, when running CPAN I get to many problems (I installed
Perl v. 5.8.3 this morning, don't know if it has an effect)
cpan> install HTML::Mason
CPAN: Storable loaded ok
LWP not available
CPAN: Net::FTP loade
k at:
http://www.bioperl.org/Core/Latest/bptutorial.html
and then if you want more
http://doc.bioperl.org/
Remo
_____
Remo Sanges - Ph.D. Student
BioGeM - IGB
Gene Expression & Sequencing Core Lab
Via Pietro Castellino 111
80131 Naples - Italy
Tel:+390816132303 - Fax:+39081
= DBI->connect("DBI:mysql:test", "test")...'
if ping return 'mysqld is alive'
> Sorry I'm a little slow on this. Thank you so much for your help so far...
You must know at least a little of mysql
Remo
_
R
18 matches
Mail list logo