Overlapping substitution

2007-10-15 Thread Kevin Viel
/,\.,/ or is there something I missed? Thank you, Kevin Kevin Viel, PhD Post-doctoral fellow Department of Genetics Southwest Foundation for Biomedical Research San Antonio, TX 78227 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

RE: Overlapping substitution

2007-10-16 Thread Kevin Viel
rom my naïve view, I don't think I would have attempted to include the alternation within the zero-width positive look-ahead assertion without seeing your example. As you correctly pointed out, I had forgotten to check the last variable, too. Kind regards, Kevin Kevin Viel, PhD Post-doctoral

RE: Overlapping substitution

2007-10-17 Thread Kevin Viel
ithout the /x? What part of this is saved in $1? Do you qualify the use of chomp since you used \z? Thank you, Kevin Kevin Viel, PhD Post-doctoral fellow Department of Genetics Southwest Foundation for Biomedical Research San Antonio, TX 78227 -- To unsubscribe, e-mail: [EMAIL PROTECTED

RE: Overlapping substitution

2007-10-18 Thread Kevin Viel
. Are these character classes that have single elements? In other words: [.] matches . [?] matches ? [*] matches * Can they be combined? [.*] Thanks, Kevin Kevin Viel, PhD Post-doctoral fellow Department of Genetics Southwest Foundation for Biomedical Research San Antonio, TX 78227 -

Hash of array

2007-10-29 Thread Kevin Viel
intended to INDEX the array: my $index ; if ( ~ exists $subjects{ $ID }{ $var } ) { $index = 0 ; } else { $index = $subjects{ $ID }{ $var } ) $subjects{ $ID }{ $var }[ $index ] = $var1 ; I would appreciate any comments or suggestions concerning this approach. Thank you, Kevin Kevin Viel

RE: Hash Variables

2007-10-30 Thread Kevin Viel
s that the last comma is "harmless, but convenient". I might be inclined to avoid it (but I need to test it): my %fruit_color = ( apple => "red" , banana => "yellow" ) ; HTH, Kevin Kevin Viel, PhD Post-doctoral fellow Department of Genetics Southwest Foundation for Biomedical Research San Antonio, TX 78227 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: Pragmas use strict and use warnings

2007-10-30 Thread Kevin Viel
lexical of that name ^^^ How else might one describe a lexical? A short variable name (or assignment to a symbol table) specific to the current package? Sometimes, this term seems clear, then not... Thanks, Kevin Kevin Viel, PhD Post-doctoral fellow Department of Genetics Sou

RE: Hash Variables

2007-11-02 Thread Kevin Viel
perl code style, so perhaps these are not advantages. However, if including the last comma is really more conventional (useful), then I can easily adopt that with little effort. Kind regards, Kevin Kevin Viel, PhD Post-doctoral fellow Department of Genetics Southwest Foundation for Biome

split then match, regex better?

2008-01-09 Thread Kevin Viel
ch or offer a better one? Thank you, Kevin Kevin Viel, PhD Post-doctoral fellow Department of Genetics Southwest Foundation for Biomedical Research San Antonio, TX 78227 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

open and close a filehandle

2008-01-10 Thread Kevin Viel
# cycled through all of the fields After I print the mod( $_ , 3000 ) = 0 field to the file, I close that filehandle and reset $cnt to zero. I am not sure, but it seems that the open function is not openning the subsequent filehandles. I would appreciate any corrections or suggestions. Kind re

RE: open and close a filehandle

2008-01-10 Thread Kevin Viel
> -Original Message- > From: John W. Krahn [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 10, 2008 8:26 AM > To: Perl Beginners > Subject: Re: open and close a filehandle > > Kevin Viel wrote: > > I have a file with thousands of fields, but a subsequent

references to complex data structures

2008-01-14 Thread Kevin Viel
f bracers with the appropriate symbol ($, @, %) the default? If so, how does perl select the correct symbol? I realize that it is seemingly moot, but it may help my understanding of more complex structures, like hash of arrays or hash of hases. Thanks, Kevin Kevin Viel, PhD Post-doctoral

RE: references to complex data structures

2008-01-15 Thread Kevin Viel
> -Original Message- > From: Rob Dixon [mailto:[EMAIL PROTECTED] > Sent: Monday, January 14, 2008 8:59 PM > To: beginners@perl.org > Cc: Kevin Viel > Subject: Re: references to complex data structures > > Kevin Viel wrote: > > Consider the following anony

while and last

2008-01-15 Thread Kevin Viel
Hello, If I only want the data on the first line of a file, can I use "last" to exit the loop or should I consider another tool? Thank you, Kevin Kevin Viel, PhD Post-doctoral fellow Department of Genetics Southwest Foundation for Biomedical Research San Antonio, TX 78227

RE: while and last

2008-01-15 Thread Kevin Viel
> -Original Message- > From: John W. Krahn [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 15, 2008 1:39 PM > To: Perl Beginners > Subject: Re: while and last > my $data = ; # Grap one line from file Doh! Thanks :) Kevin Viel, PhD Post-doctoral fellow Depa

Hash of hashes?

2008-01-18 Thread Kevin Viel
Perl for Bioinformatics", "Perl for C Programmers", and the Llama book. Thank you, Kevin Kevin Viel, PhD Post-doctoral fellow Department of Genetics Southwest Foundation for Biomedical Research San Antonio, TX 78227 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Clear a hash

2008-01-18 Thread Kevin Viel
Is there a way to empty/clear a hash in mass? For instance: %hash = {} ; Might the above create an reference? Thank you, Kevin Kevin Viel, PhD Post-doctoral fellow Department of Genetics Southwest Foundation for Biomedical Research San Antonio, TX 78227 -- To unsubscribe, e-mail: [EMAIL

RE: Hash of hashes?

2008-01-21 Thread Kevin Viel
> -Original Message- > From: Chas. Owens [mailto:[EMAIL PROTECTED] > Sent: Friday, January 18, 2008 9:07 PM > To: Kevin Viel > Cc: beginners@perl.org > Subject: Re: Hash of hashes? > > On Jan 18, 2008 6:06 PM, Kevin Viel <[EMAIL PROTECTED]> wrote: > &

RE: Hash of hashes?

2008-01-22 Thread Kevin Viel
> -Original Message- > From: Chas. Owens [mailto:[EMAIL PROTECTED] > Sent: Monday, January 21, 2008 1:11 PM > To: Kevin Viel > Cc: beginners@perl.org > Subject: Re: Hash of hashes? > #! /usr/bin/perl > > use strict; > use warnings; > > use Dat

!system and output

2008-04-07 Thread Kevin Viel
t;feed" them to STDIN. I could write them to a temporary file, read them after the child process has returned control to the perl program, and then delete them, but it seems like I might find a "better" way. I would appreciate any suggestions or references. Thank you, Kevin Kevin

Re: regex one liner

2006-03-21 Thread Kevin Viel
BTW, out here in the real world (that would be UNIX), *.pl stands for Perl Library file, not a script. What extension do you suggest using, if any, in the real world? Thanks, Kevin -- Kevin Viel Department of Genetics

Citing perl

2006-04-26 Thread Kevin Viel
Is there a standard citation of perl, for instance a paper in a journal describing the language, that I might use for a publication? Thanks, Kevin -- Kevin Viel Department of Genetics e-mail: [EMAIL PROTECTED

Re: Citing perl

2006-04-26 Thread Kevin Viel
Tom Phoenix wrote: On 4/26/06, Kevin Viel <[EMAIL PROTECTED]> wrote: Is there a standard citation of perl, for instance a paper in a journal describing the language, that I might use for a publication? Well, just to be certain, are you talking about Perl the programming language? O

Re: Stealing vs buying Was: Print

2006-05-19 Thread Kevin Viel
n.com. -Kevin -- Kevin Viel Department of Genetics e-mail: [EMAIL PROTECTED] Southwest Foundationphone: (210)258-9884 P.O. Box 760549 fax:(210)258-9444 San Antoni

Providing STDIN to a PIPEd call to perl

2006-07-05 Thread Kevin Viel
text file containing the file name, but this is wasteful. I appreciate any comments. Thanks, Kevin ------ Kevin Viel Department of Genetics e-mail: [EMAIL PROTECTED] Southwest Foundationphone:

Re: Providing STDIN to a PIPEd call to perl

2006-07-05 Thread Kevin Viel
Mr. Shawn H. Corey wrote: Kevin Viel wrote: I call a perl script from SAS using a pipe. The file on which the script acts changes. Is there a way to provide the file name to the script using STDIN on the command line? The SAS call looks like: filename ABI pipe "perl C:/base.ps"

Re: Providing STDIN to a PIPEd call to perl

2006-07-05 Thread Kevin Viel
Chad Perrin wrote: On Wed, Jul 05, 2006 at 11:31:55AM -0500, Kevin Viel wrote: Mr. Shawn H. Corey wrote: Kevin Viel wrote: I call a perl script from SAS using a pipe. The file on which the script acts changes. Is there a way to provide the file name to the script using STDIN on the

Hide code and user interfaces

2006-08-11 Thread Kevin Viel
seems lengthy to implement and I do not want them opening my script and altering (on accident). Thanks, Kevin PS Yes, I realize that I should hire an experienced programmer, but I have no budget at this point in my career. -- Kevin Viel Department of Genetics [EMAIL

regex help

2006-08-14 Thread Kevin Viel
=~ /^[a-zA-Z0-9]+_A|a[0-9](F|R)[0-9](1-4)$/ I am unsure if I need to group the relevant parts using (). Could anyone advise or is the use of the anchor sufficient? Thanks in advance, Kevin -- Kevin Viel Department of Genetics [EMAIL PROTECTED] Southwest Foundation for

Perl on external hard drive

2006-09-11 Thread Kevin Viel
-- Kevin Viel Department of Genetics [EMAIL PROTECTED] Southwest Foundation for Biomedical Research phone: (210)258-9884 P.O. Box 760549 fax:(210)258-9444 San Antonio, TX 78245-0549 Kevin Viel PhD Candidate Department of Epidemiology Rollins

Re: Perl on external hard drive

2006-09-11 Thread Kevin Viel
Kevin Viel wrote: Is it possible to install perl and modules on an external hard drive that I could take from computer to computer? It seems a simple as installing it onto that drive, but I do not know whether I can use PPM to install CPAN modules there or whether I can use it successfully

CPAN installs

2007-01-15 Thread Kevin Viel
I am attempting to install modules on a Solaris v10 computer for which I do not have root privileges. I see in MyConfig.pm that the build directory is local: 'build_dir' => q[/home/kviel/.cpan/build] Where does it install the (built) module? Thank you, Kevin -- Kevin Viel

Re: CPAN installs

2007-01-16 Thread Kevin Viel
Wiggins d'Anconia wrote: Kevin Viel wrote: I am attempting to install modules on a Solaris v10 computer for which I do not have root privileges. I see in MyConfig.pm that the build directory is local: 'build_dir' => q[/home/kviel/.cpan/build] Where does it install

substituting one variable, assign to another

2007-01-24 Thread Kevin Viel
How can take the value of one variable, substitute say its suffix, and assign it to another? I have only figured out how to do it using an intermediate variable: if ( $code eq "" ){ my $base = $out ; $base =~ s/\.out$/\.cde/ ; $code = $base ; } Many thanks, Kevin --

Re: C language and bioinformatics

2007-01-24 Thread Kevin Viel
resequencing (3 billion data points per subject X 3 bits minimum), you can bet that such a suite will be the standard; noone is going to expect a technician to review the data. Kind regards, Kevin -- Kevin Viel Department of Genetics [EMAIL PROTECTED] Southwest Foundation for

Re: substituting one variable, assign to another

2007-01-24 Thread Kevin Viel
Tom Phoenix wrote: On 1/24/07, Kevin Viel <[EMAIL PROTECTED]> wrote: How can take the value of one variable, substitute say its suffix, and assign it to another? I have only figured out how to do it using an intermediate variable: if ( $code eq "" ){ my $base = $out ;

parsing XML

2007-01-24 Thread Kevin Viel
icial 9606 190080 I would like search for certain keywords and abstract all gene in this query that meet the criteria. Can someone recommend a module? I looked at XML::Simple::DTDReader. I would be grateful for any help or suggestion. Thank you, Kevin -- Kevin Viel Depa

Re: parsing XML

2007-01-25 Thread Kevin Viel
From: Kevin Viel <[EMAIL PROTECTED]> I have obtain results of a query in XML format: http://www.ncbi.nlm.nih.gov/entrez/query/DTD/eSummary_041029.dtd";> 4609 MYC v-myc myelocytomatosis viral oncogene homolog (avian) Homo sapiens

Re: C language and bioinformatics

2007-02-05 Thread Kevin Viel
have lots of modules available from Bio* projects http://bioperl.org http://biopython.org thats my 2 cents !!! Can you describe *why* python might be preferred? What does it offer that is an advantage compared to perl? Thanks, Kevin -- Kevin Viel Department of Genetics

Compound variable names

2007-03-02 Thread Kevin Viel
Greetings, I have been struggling with this one for a while. How can I create a variable name composed of two or more variables? I suspect I have to I have to use a reference: my $var1 = "part" ; my $var2 = "2"; my $compound = $var1_$var2 ; Thanks, Kevin -- K

unix date for perl time calculation

2007-03-21 Thread Kevin Viel
ful reference (while I begin to RTFM). Thank you, Kevin -- Kevin Viel Department of Genetics [EMAIL PROTECTED] Southwest Foundation for Biomedical Research phone: (210)258-9884 P.O. Box 760549 fax:(210)258-9444 San Antonio, TX 78245-0549 Ke

Re: Perl error

2007-04-24 Thread Kevin Viel
this problem? Thank you, Kevin -- Kevin Viel Department of Genetics [EMAIL PROTECTED] Southwest Foundation for Biomedical Research phone: (210)258-9884 P.O. Box 760549 fax:(210)258-9444 San Antonio, TX 78245-0549 Kevin Viel PhD Cand

Re: Perl error

2007-04-25 Thread Kevin Viel
, I'd like to say over a year, but I am not sure. So, could it be that somehow the environment path variable relating to perl had been changed? Otherwise, I cannot account for the difference. Thanks, Kevin -- Kevin Viel Department of Genetics [EMAIL PROTECTED] Sout

Installing CPANPLUS

2006-03-13 Thread Kevin Viel
place for it? Thanks in advance, Kevin -- Kevin Viel Department of Genetics e-mail: [EMAIL PROTECTED] Southwest Foundationphone: (210)258-9884 P.O. Box 760549 fax