No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Bioinformatician
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 … |
|
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 Ö |
|
I get some error while printing in text like this ¦Å instead of ρ etc..while parsing HTML file |
|
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 … |
|
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] |
|
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. |
|
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. |
|
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); } … |
|
[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 … |
|
/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? |
|
What is the difference between an instance variable and field in java? |
|
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 … |
|
[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 … |
|
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 … |
|
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 … |