Hi all,
I'm trying to read in a bunch of files and insert the contents of the
tag into the tag, writing the output to a temp file.
Am getting this error:
Use of uninitialized value at title.pl line 28, chunk 14.
Which is this line:
$_ =~ s#$pattern2#$title#g;
I'm not sure why I'm getting t
Bee,
Thanks much for your explanation of where I was going wrong in the foreach
loops.
cancel.txt contains 2 fields
028076|C
What I ended up doing was:
First looping through %course_info
Then looping through the array of canceled courses
If there was a match, I changed the value in the hash and
Hi all,
I'm in search of a module that will give me the day of a week for a
particular date.
So for example, July 21 would return Wed
I checked CPAN but nothing jumped out at me.
Any ideas?
Thanks in advance,
Pam
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
Hi all,
thanks in advance for any help...
what I want to do is:
1)
read in a file containing daily total hits to certain urls within a subdirectory
so total.030922 would contain:
month date subdir and total count for this date
example: Sep 22 airport 4
Sep 22 alumni 5
2)
read in the files in th
Hi all,
am struggling with this, and it must be the something simple but for the life of me I
don't see it.
Am trying to build a hash table with:
instructor name and their biography
I've tried just about everything, but I can't get the values to show...
where am I going wrong?
thanks, Pam
sn
and is the author of two books on computer-assisted publishing. A
short story wri
ter, he edits and publishes an online literary magazine, IndiaStar Review of Books
(www.indiastar.
com).
XXX
>>> "R. Joseph Newton" <[EMAIL PROTECTED]> 03/13/03 18:25 PM >>>
Pam De
last if($replace =~ $end)
}
}
print("SUB: @lines\n");
return;
} #end replace_it
close CAT;
close BIOS;
close OUT;
>>> "R. Joseph Newton" <[EMAIL PROTECTED]> 03/13/03 10:45 AM >>>
Pam Derks wrote:
> Hi all,
Hi
ta, then read file1 and when you hit an instructor, then use that as the
key to access your data and write out the info.
Wags ;)
Pam Derks wrote:
> Hi all,
>
>
> In FILE1 I want to replace all the lines containing:
> Instructor: [A-Z].+
>
> with the complete biography for eac
Hi all,
In FILE1 I want to replace all the lines containing:
Instructor: [A-Z].+
with the complete biography for each instructor in FILE2
or
replace this text in FILE1
Instructor: GENE ABBOTT
with this text from FILE2
GENE ABBOTT, M.A., has worked in vocational and adult education si
thanks!
what type of security does the CGI module include that cgi-lib doesn't have?
>>> "Dan Muey" <[EMAIL PROTECTED]> 02/11/03 06:30 AM >>>
Because you call log_data() everyt time the script is run regardless of input
So it will write do log_data when you first bring up the form because $in{'Su
Hi all,
I have a cgi with a here doc,
which takes the input fields (name, address, city, zip, etc.) and writes to a file.
it work fine, BUT when you press "Reload" on the browser it keeps writing blank data
to the output file.
Does anyone know how I can prevent this?
thanks for any help,
Pam
} = 1;
}
foreach my $page ( sort( keys(%all_keys) ) ) {
my $diff = $hash1{$page} - $hash2{$page};
my $diff = abs($diff); # remove "-" sign
print "$page $diff\n";
}
It can be done a lot more compact than this, but I thought this would be a
bit more understandable.
Rob
Hi all,
I have 2 files that contain a filename and # of hits
I've split the contents of these 2 files into %hash1 and %hash2
I want to find out the difference in the # of hits
can someone shed some light on the approach I should take.
thanks in advance,
Pam
I've gotten this far:
sample data
Hi all,
I want to grap the:
last first middle(if any) email
from a text file
sometimes there is a middle intital, sometimes there isn't
sample data:
Smith, Mary [EMAIL PROTECTED]
Jones, Tommy Lee [EMAIL PROTECTED]
can someone suggest improvements to the code below?
#!/usr/bin/perl -w
my ($fir
I'm having difficulties with @ARGV...
I have a several files:
access_log.021204
access_log.021205
access_log.021206
that I want to read in using @ARGV
and then pass these file names to 2 subroutines
At the command line I've tried:
myprogram.pl access*
myprogram.pl
get_file(@ARGV)
get_match(@AR
quot;)
or die ("There is no file: $!\n");
foreach ()
{
chomp;
my ($date, $url) = split / /;
$file{$url}++;
}
close IN;
}
#end get_data
HTH,
Rob
- Original Message -
From: "Pam Derks
f you're intending to split on the '/' path separator then I suggest
($date, $url) = split(/ /, $line);
@url = split /\//, $url;
which will give $date = '021211', $url = 'archive/summer.html', @url =
('archive', 'summer.html'). Is this what y
Howdy,
why isn't $i incrementing?
here's sample of data file containing date and filename:
021211 archive/summer.html
021211 archive/summer.html
021211 archive/tipsheet.html
021211 arts.html
021211 arts.html
021211 arttherapy.html
021211 arttherapy.html
021211 arttherapy.html
021211 award.html
02
thanks, Pam
>>> Michael Fowler <[EMAIL PROTECTED]> 09/03/02 17:54 PM >>>
On Tue, Sep 03, 2002 at 04:33:37PM -0700, Pam Derks wrote:
[snip]
> #!/usr/bin/perl
> #process all files in directory www/htdocs
>
> use File::Find;
> @ARGV = qw(/dept/unxmkt/www/htdocs
Hi,
Newbie here...I'm trying to find the string "Take our survey" in all the files that
match this pattern, traversing multiple directories. When I run it I get no filenames.
I'm positive the string exists. Any ideas as to what I'm doing wrong.
Thanks for any help, Pam
Here's what I've got..
Am trying to find out what modules have been installed on my system. I know they're
stored in the @INC array, but how do I find out which ones they are?
thanks for any help,
Pam
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I've been trying to understand program 6.21 in the Perl Cookbook, which changes URLs
to html links
here's a snippet:
#!/usr/bin/perl
$urls = '{http|telnet|gopher|file|wais|ftp');
$ltrs = '\w';
$gunk = '/#~:.?+=&%!\-';
$punc = '.:?@\-';
$any = "${ltrs}${gunk}${punc}";
I understand what
Hi,
I'm a newbie struggling to total up a web users survey for work. The HTML form is a
separte document, which calls up the cgi script. I've been reading the CGI module
and
figured out how to get the key/value paris. Now, I want to tally the answers,
i.e. 10 users choose question 2
Thanks all for your suggestions regarding earlier post (below):
Am testing out a new web server running SunOS5.8 " and I can't get any of my cgi
scripts to run. I get this error message:
"Premature end of script headers"
the cgi scripts worked perfectly on the old server which was running D
Hi,
Am testing out a new web server running SunOS5.8 " and I can't get any of my cgi
scripts to run. I get this error message:
"Premature end of script headers"
the cgi scripts worked perfectly on the old server which was running Digital UNIX.
any ideas?
many thanks, Pam
25 matches
Mail list logo