snowy has asked for the wisdom of the Perl Monks concerning the following question:
I have the following bit of code and either get an uninitalised value in the print command or in the match statement.
Why?
#! usr/bin/perl use warnings; use strict; my @allrecords; my $record; my $beginning_annotation; my $ending_annotation; my $alignment_section; unless (open (BLAST, "result.fasta")){ print "Can not open data file \n"; exit; } $/ = "BLASTP 2.2.3 [Apr-24-2002]"; @allrecords = <BLAST>; foreach $record (@allrecords){ ($beginning_annotation, $ending_annotation, $alignment_section, $re +cord) = @_; ($$beginning_annotation, $alignment_section, $$ending_annotation) = ($record =~ /(.*^ALIGNMENTS\n)(.*)(^ Database:.*)/ms); print $beginning_annotation; } exit;
I have checked that the seperator works
Thanks in advance
Catherine
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Uninitalised Values - What does it mean?
by thelenm (Vicar) on Jun 19, 2002 at 15:54 UTC | |
|
(jeffa) Re: Uninitalised Values - What does it mean?
by jeffa (Bishop) on Jun 19, 2002 at 16:04 UTC | |
|
Re: Uninitalised Values - What does it mean?
by ckohl1 (Hermit) on Jun 19, 2002 at 15:51 UTC | |
|
Re: Uninitalised Values - What does it mean?
by Gilder (Initiate) on Jun 19, 2002 at 17:46 UTC | |
by Abigail-II (Bishop) on Jun 19, 2002 at 17:53 UTC | |
|
Re: Uninitalised Values - What does it mean?
by Pug (Monk) on Jun 19, 2002 at 15:41 UTC |