I used to put all the compiled perl modules in a folder and the folder will be part of the application folder which is having scripts and other config.
So when somebody deploys the same they need to change the config file to change the application directory and all Perl Libs shuld be taken from there(The PERL5LIB path shuld be defined with reference to Application path in config)
Raghu
User Profile
Collapse
-
You can try using curl executable (in windows) or wget (In unix).
Call this from a Perl program and you can easily download the file.
RaghuLeave a comment:
-
Have you started writing anything for this?
We can help you with ideas and not code.
RaghuLeave a comment:
-
Hi,
R u maintaining the file like DB?
Can you give more details so that people can help u with ideas.
RaghuLeave a comment:
-
HI,
May be you can check for the return value of a function and deceide to terminate or not.
To terminate you can call die "with error message " or simply exit
RaghuLeave a comment:
-
-
HI,
The Linux commands will be much more optimized than your code and that may be one of the reason for that.
Thanks
RaghuLeave a comment:
-
Issue with Thread:Que
Hi,
I am trying to use Perl Thread:Queue module.
I have written this piece of code
Code:use strict; use Thread; use Thread::Queue; my (@Que,@ThreadQ); my $MAX_THREADS = 1; for my $i(0 .. $MAX_THREADS){ $Que[$i] = Thread::Queue->new(); push @ThreadQ, threads->new(\&ThreadFun,$i); } for my $i(0 .. $MAX_THREADS){
-
HI,
To work on XML from C/C++ you need some XML libraries written using C/C++ like expat or libxml and then you can work on that.
Thanks
RaghuLeave a comment:
-
-
In this declaration
int seats[max_seat_rows][max_seat_cols]={0};
what is value of max_seat_rows and max_seat_cols
If you want to set the size dynamically then decalre a double pointer array and initialize it.
RaghuLeave a comment:
-
You can use top command to know the CPU usage for any process.
RaghuLeave a comment:
-
Hi,
You have defined the SeatArray like this struct Seat SeatArray[10][20];
and you are initializing it till 200...How it will work and this will surely crash.
thanks
RaghuLeave a comment:
-
I think you havent included the winsock library in linker options.
Try to include winsock and winsock (libraries) and i think the issue will get resolved.
RaghuLeave a comment:
-
Hi,
Thanks for the suggestion.
I was able to use XML::XSLT to achive this.
Thanks
RaghuLeave a comment:
-
I am using Windows and using Activeperl 5.8.6
I am trying to download the modules from cpan and installing it.
RaghuLeave a comment:
-
RSS Parsing with Perl
HI,
yesterday i posted a question on XSL transformation and i was able to solve that.
Now my question is on RSS parsing.
I tried using XML::RSS and was trying to install the module.
There are many dependencies and i was not able to install the module.
Anybody have an idea on which other module to use other than XML::RSS?
Raghu -
Extracting Data from XML using XSL
Hi,
I want to know how to extract information from a XML file using a XSL style sheet using perl.
I have alreday written a XSL for a XML file.
My requirement is to apply this XSL on the xml which in turn gives me a csv output.
Which module shuld i use for this?
Thanks
Raghu -
Usually fwrite is used to write a structure or a block of data into a file.
When you try to open the file written by fwrite it will be like junk but when u read it using fread you will get actual contents.
You shuld open a file in wb mode to use fwrite.
RaghuLeave a comment:
-
gpraghuram replied to Using awk/sed to find text between delimiters and outputting each result to a filein LinuxThe code wuld be like this
Code:BEGIN{ } { while (getline < IP_FILE > 0) { #Your logic shuld be here. } } END{ }
Leave a comment:
No activity results to display
Show More
Leave a comment: