Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
About Me

Bioinformatician

Favorite Tags
Member Avatar for PhoenixInsilico

I have a exe file named file.exe When it is run through command line, it takes some data and process it and creates an output file. I want to feed data to file.exe within a perl script and want the output file. Please let me know the commands to do …

Member Avatar for chandrashekar
0
212
Member Avatar for PhoenixInsilico

How to handle characters like ü, Ö etc. I tried using decode_utf8() function. But still when I print the string I get some funny characters instead of ü or Ö

Member Avatar for 2teez
0
95
Member Avatar for PhoenixInsilico

I get some error while printing in text like this ¦Å instead of ρ etc..while parsing HTML file

Member Avatar for d5e5
0
84
Member Avatar for PhoenixInsilico

I am trying to parse an html file. But unable to remove spaces using \s (matching character for whitespace) [CODE]use strict; use warnings; open(FILE,"<paragraph.txt")|| die "Can't open para.txt"; my @file = <FILE>; my $all = join("",@file); $all =~ s/\n/ /g; $all =~ s/\./\. /g; $all =~ s/\s\s*/ /g; open (FIL,">paraone.txt")||die …

Member Avatar for histrungalot
0
117
Member Avatar for PhoenixInsilico

I have an account in an mail server with email address eg. [email]amiyatulu@example.org[/email] but it does not allow sending more than 100 mails per day. Can I use postfix server to send mails on behalf of [email]amiyatulu@example.org[/email]

Member Avatar for kc0arf
0
349
Member Avatar for PhoenixInsilico

I have a very large text file. When I create a filehandle and assign it to array it shows out of memory. Is it possible to search upto a particular specified line only.

Member Avatar for d5e5
0
71
Member Avatar for PhoenixInsilico

I am stuck in program which need to build a hash of unknown number of keys which we will enter or give. If there would be a push function we can make loop and increase its size.But how will be it possible with hash.

Member Avatar for PhoenixInsilico
0
64
Member Avatar for PhoenixInsilico

Help me to find where I am wrong[CODE] package Exception; sub excep{ my ($ref_numbers,$ref_exceptions,$number,$n) = @_; my @excepts; if ($number == 0) { return (\@excepts); } else{ my $i; for($i=0;$i<$n;$i++) { my $a=0; if($i != $$ref_execptions[$number]) { $excepts[$a] = $i; $a++; } else { $a++; } } $number--; &excep(\@excepts,$ref_exceptions,$number,$n); } …

Member Avatar for Taywin
0
142
Member Avatar for PhoenixInsilico

[CODE] my %distAvail; foreach (map(split(/\D+/,$_),<STDIN>)) { $distAvail{$_ }++; };[/CODE] What does [COLOR="#ff0000"]$distAvail{$_ }++;[/COLOR] mean here? The input is set of distances separated by whitespace (or any non-digit character). The book says %distAvail keys are distances and whose values give the number of copies of the key. But I don't understand …

Member Avatar for PhoenixInsilico
0
250
Member Avatar for PhoenixInsilico

/success$/ will match "unsuccess" but not "successful". But I have some problem in understanding it when used in some situation like $string =~ s/\s*$//; What does here the $ means?

Member Avatar for masijade
0
63
Member Avatar for PhoenixInsilico
Member Avatar for verruckt24
0
148
Member Avatar for PhoenixInsilico

Why does following does not work ?? [CODE] #include<iostream> using namespace std; class point{ float x,y,z; public: point(float f_x =1.0, float f_y=1.0, float f_z=1.0); void getxyz(float &x, float &y, float &z); }; point::point(float f_x, float f_y, float f_z) { x= f_x; y= f_y; z= f_z; } void point::getxyz(float &x, float …

Member Avatar for PhoenixInsilico
0
781
Member Avatar for PhoenixInsilico

[ICODE]#include<iostream> using namespace std; class Point{ float x,y,z; public: Point(float f_x=1.0, float f_y=1.0, float f_z=1.0); void setXYZ(float X, float Y, float Z); void setX(float X); void setY(float Y); void setZ(float Z); void getXYZ(float &X, float &Y, float &Z); float getX(); float getY(); float getZ(); }; Point::Point(float f_x, float f_y, float …

Member Avatar for sidatra79
0
89
Member Avatar for PhoenixInsilico

The following program should take 4 numbers but it takes 5 numbers and prints first 4 number entered. How to correct the problem??? [ICODE]#include<stdio.h> #include<conio.h> void main() { int a1,a2,a3,a4; printf("Enter 4 numbers \n"); scanf_s("%d %d %d %d ", &a1,&a2, &a3, &a4); printf("The 4 numbers entered are %d %d %d …

Member Avatar for PhoenixInsilico
0
77
Member Avatar for PhoenixInsilico

The following program should take 4 numbers but it takes 5 numbers and prints first 4 number entered. How to correct the problem??? [ICODE]#include<stdio.h> #include<conio.h> void main() { int a1,a2,a3,a4; printf("Enter 4 numbers \n"); scanf_s("%d %d %d %d ", &a1,&a2, &a3, &a4); printf("The 4 numbers entered are %d %d %d …

Member Avatar for ahamed101
0
74