I know this is most likely elementry for u ppl, but could someone tell me what it means when PERL says -
"cant modify constant item in postincrement"?
Secondly, does anyone know where the...
I want to perform BFS and DFS on a graph.
1. how do I build a graph in Perl?
2. how do I do BFS on a given graph in Perl?
3. how do I do a DFS on a given graph in Perl?
Hi
Sometimes my httpd process hangs and generate the following error in the log file
[Fri Jun 8 16:53:23 2001] [error] (233)No buffer space available: accept: (client socket)
I am running a simple daemon using libwww's HTTP::Daemon module.. Main code looks like this (I just deleted things that don't have to do anything with my question):
----------------------...
I have scripts that 'require' others that contain
only subroutines. I'd like to be able to run
these subroutines directly (for debugging).
Presently I just place a call in the file
and ...
Hi,
I wish my perl script would idetify the user who ran it.
I tried:
$user = system('whoami');
but $user idetifier came out to be empty (0),
the whoami command was exectue...
I am trying to convert my perl script to an executable file. I tried using the perlcc -o myfile myfile.pl and I got the error message 'Couldn't Spawn the Compiler'. I was wondering if someon...
simple question really,
let say i have a hash:
my %hash = (
'SH06' => '7',
'PP99' => '2',
'CBRF' => '1',
'TC15' => '140',
'PC99' => '35',
...
Experts,
I'm running a script that queries an oracle 9.2.0 DB.
I'm using DBI and DBD::Oracle.
The DBD install is not functioning properly because it doesn't suppor this version of Ora...
This must be an easy question for a Perl guru, but I don't know how to do it.
I want to assign a string of 100 zeros to a string variable $str.
How do you do this in Perl?
I need to perform an operation on a directory and its subdirectories in Win32. I thought it would be easy but am having some difficulties. Please provide some generic code. Thanks.
Hi,
I need to write a sub which will get a date
and will return Odd/Even if the date belongs to an
Odd or Even week from the start of the given year...
Any Simple ideas?
Tnx.
I have a file called test.csv . I like to count the test.csv. If lines in test.csv is more than 100, then save the file to a file with today's timestamp like test.csv_11092008_1010 . Thanks.
I need to search & replace text in a number of files.
Text is usually in the format "ABCDEFEG-XZXCVBN Page y of 300". I cant use the standard search and replace because the page number in th...
i have 5 Perl scripts and i want to run them simultaneously on Windows.
I tried to write a perl script or put all cmd command to run them into a .BAT file but it only run them one by one.
Wh...
Follow up to previous question:
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_23785717.html
I've attached a comma-delimited text file that I want to check the fou...
I use one script to pull data from a Cisco router then the second scripts uses the output file of the frist script to output the final file.
I wish to combine these into a single script.
...
I have the following code, with give a dividing by zero problem. Obviously, the $fields[1] is not supposed to be zero. It print out a decimal number when direct print out. And it can be added ...
What (if there is one) is the best module to use to stop and start services on a remote windows server? I'm trying to get away from mapping a drive and calling another application like netsvc ...
I am very new to perl and would like to know how to parse out information from a series of files into a new file.
For Example the file has table rows with the following information.
<tr><t...
Hi, I need to check whether my file contain any ASCII character thru perl script, how do I do it???
I have the following file:
# OVO Report
# --- ------
#
# Report Date: 07/20/07 Report Time: 08:25:42
#
# Re...
File test.csv in following format
cool dude!
be frank
"jumbo jet","A370"
airbus,from,UK
Boeing,from,US
"fly","with"
whatsup
c ya
Please suggest Perl script to extract lines betwee...
I am not a Perl programmer, but have inherited some Perl code that is running on our server. I am familiar with Pascal and BASIC, so I know how to program. I'm trying to document the source ...
What's a good way to get the current time in a given timezone? Currently I'm using the DateTime module, but I'm finding that it is pretty inefficient. What I need basically is a localtime() ty...