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
~2K People Reached
Favorite Forums
Favorite Tags
perl x 14
c x 1
c++ x 1
Member Avatar for anraevlus18

Hi, Could any one tell me what is wrong with my code? It does not time out after 5 seconds which is what i need. It remains in the infinit loop. [CODE] #! /usr/bin/perl use strict; use warnings; sub comeOut; $SIG{ALRM} = \&comeOut; while (1) { }; eval { alarm …

Member Avatar for d5e5
0
90
Member Avatar for anraevlus18

Hi, I am very new to C++. In my code i am using readline to get the user input which is a command and that input will be processed accordingly. When user enters a command named "setflag", i should set a flag to TRUE in all the active sessions of …

0
80
Member Avatar for anraevlus18

Hi, I have an array file_list which contains absolute/relative paths of files. I want to remove duplicate elements and elements whose filenames(not the path) are same. How can i do this using grep and hash? Is it possible to do this with one single grep? [CODE] my @file_list= qw(aaa ddd …

Member Avatar for d5e5
0
254
Member Avatar for anraevlus18

Hi, I am very new to perl..I want to install a cpan perl module OLE-Storage_Lite-0.19 in a linux machine. The installation instructions does not specify any thing about the @INC path. Will the make file find the proper directory by itself or do we have to explicitely mention it? INSTALLATION …

Member Avatar for richieking
0
159
Member Avatar for anraevlus18

Hi, In my perl script p1 i am calling another script p2 which logs into a remote machine and executes a script p3. The $file defined in p3 does not exist. So copy operation in p3 will error out with error code 256 and p3 stops execution with exit staus …

Member Avatar for mitchems
0
240
Member Avatar for anraevlus18

Hi, My script has 3 options which recieve integers. If any of those options are having a value which is less than zero i want to make them to 100. eg: if opt2 = 32 and opt3 = 24 i want to make them to 100. <code=perl> our $opt1,$opt2,$opt3; our …

Member Avatar for d5e5
0
115
Member Avatar for anraevlus18

Hi i am a newbie to perl.. I have a script which copies files from local machine to a remote machine. I am using Getopt::Long to get the command line arguments. "-d" : for directories "-f" : for files doubt #1 GetOptions ('d:s' => \@dir, 'f:s' => \@fil); If i …

Member Avatar for d5e5
0
99
Member Avatar for anraevlus18

Hi I am new to perl...I have a file in which sections are seperated by "//************************************************" How can i search for the asterisk character using regular expressions? =-------------- open(IN, "<$inFile") while (<IN>) { if (/^\/\/**/) #here is the error..search for multiple '*' character { print "Seperater found" } } pls …

Member Avatar for anraevlus18
0
1K
Member Avatar for anraevlus18

please help me.. am using turbo c 3.00 i'm gettin a compile time error : Lvalue required. ------------------------------------------------------------- [code] #include<stdio.h> #include<conio.h> #include<stdlib.h> int func(int x,int y) { int *ptr1=&x,*ptr2=&y; int **ptr_1,**ptr_2; *ptr_1=ptr1; *ptr_2=ptr2; printf("\nUsing function pointer : "); printf("\nx=%d\ny=%d",**ptr_1,**ptr_2); int sum=*ptr1+*ptr2; return sum; } main() { int *fnptr(int,int); // declare …

Member Avatar for Ancient Dragon
0
87