Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
!/usr/bin/perl use strict; use warnings; Pacakge CCD::Human; #declare new class my $in = ("/home/ki/Downloads/currenthumanccds.txt") or die "Can't ope +n file: $!"; #declare file in n path my $out = ("home/ki/output.txt") or die "Can't create file path: $!"; +#declare file out and path open (IN, $in) or die "$!"; open (OUT, '>' , $out) or die "$!"; my @text; my $input=<STDIN>; while (<IN>){ chomp; my @fields = ( split /\t/ ); } if ($in=~ /+\/),$text[6]){ print OUT "$text[2]\t $text[6]\t";# if a + is present print it and + the gene id text[2] }and{ if ($in=~ /withdrawn/),$text[5]{ print OUT "not public"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: creating a class with encapsulation ?
by GrandFather (Saint) on Apr 26, 2016 at 03:30 UTC | |
|
Re: creating a class with encapsulation ?
by Athanasius (Archbishop) on Apr 26, 2016 at 04:02 UTC | |
by Anonymous Monk on Apr 27, 2016 at 04:05 UTC | |
by Athanasius (Archbishop) on Apr 27, 2016 at 04:41 UTC | |
by Anonymous Monk on Apr 29, 2016 at 01:27 UTC | |
by Athanasius (Archbishop) on Apr 29, 2016 at 02:43 UTC | |
by Anonymous Monk on Apr 29, 2016 at 01:38 UTC |