Does someone know how to escape " character in system command argument?
Calling command system("echo foobar | ./myscript"); without apostrophe does won't without any problem.
However like l...
i'm looking for a good way of howto dump data from a hash key with a unknown number of keys
and dimesions into a readable textfile, the data source is a windows registry key.
use strict;...
I am using a mysql database using the DBI mod to access it.
The database has some headers:
One of them is the customers number.
1)
What I want to do is to sort on the customer number (cu...
I currently have the following piece of code to delete numbers from an array:
@greparray = grep(!/$stringdelete/, @inputarray);
The user specifies the numbers to delete on the command line. ...
I need a script that can monitor the server load and when the load is high, I want the script to replace file A with file B.
I plan to use it in cron jobs.
offering all the points I hav...
I use the following Perl script to add the results from an xml file parser to a MySQL database. The problem is that I need to add the $result->query_name as a separate field, but when I try to...
Does anyone know how to run a perlscript without using the preceding 'perl' command? For example, if I had a perlscript named 'readfile.pl' and a textfile, I'd to be able to output the conten...
Take a look at the code for # User it seems fine to me but when I refresh the webpage in the brower
the User tab does not show up at all on the left side toolbar.
It seems as if my <a hr...
We would like to monitor SQL database services (MS SQL server service and SQL server agent services). Whenever these two services stops/starts, or crashes then Database OPERATOR's (email id's,...
I have a big text (consider html) and I need to set in bold a substring. I have the substring unaccentuated, but I need to convert also the accentuated parts.
if I have
a : á ä, ...
c:...
Actually I have design question. In my Perl script. I have to connect to database, or other servers etc. How do I always have a check that the connection was successful or failed? How do I han...
I like to copy a existing file and the file should have a datetime stamp at the end of the file.
So, old file test.csv
new file test20080403_0800.csv
I have tried everything I could think of to get this to work with no luck. I have tried threads and fork with the same results.
What this does (or should do) is pop-up a TK Splashscreen wit...
I am using perl LWP::UserAgent to post a request to a server ... something like
my $ua = LWP::UserAgent->new;
$ua->cookie_jar({file=>"filename"});
blah blah
eval { $resonse = $ua...
Hi Experts,
If possible please provide me, books on perl scripting or programming.
Thanks
I have XML file which can contain info related to single employee or multiple employee in the format specified.
Single Employee
<employer>
<employee id='ABCD' idtype='characterId'>
...
I am using "Location: " in the header of a page that is being returned from a Perl Script to redirect the user to another web site.
In the event that the user's browser does not process the...
I need to get the value of those <text title = "yes"> and concate them together in prel script. I had already stored all of the as a variable, so I need to search those with attribute TITLE="y...