I'm doing the same thing over and over again for hours with no results!
Seems very stupid but help me find what is wrong ...
I have two arrays:
@tirar that grabs user form input (checkbox)
@thecats - populated from DB in form of 1|43|56|74 ($mailcats)
The script is supposed to remove the...
Yes, Kevin, like a building. One put the foundation, another the walls, someone the roof...
Again thank you all for the time spent, I was in a urgent need.
Hi Steve, Tks. Sintatically is correct, I got no errors.
BUT I always get the unknown as the category # even if the cat nme is the very same in both files.
Sorry for been so dumb but I didn't got exactly how the compare is made.
Thank you for anwering. Here what I have so far:
# All info is in cats.txt
#Have to open links.txt and for each line find the correspondig ID for the Cat name.
open(CATS, "cats.txt"); #format ID|Cat name
@catz=<CATS>;
close(CATS);
open(LINKS, "links.txt"); #format Url|Cat name|Link...
Sorry guys to ask this, I'm lost. I searched previous post but find no help.
I have the following 2 files:
File 1 = ID#|Category (Pipe separated values, about different 1,300 lines)
File 2 = Url|Category|Link (30,000 lines)
What I need is to do is open File 2, split and find the ID# for the...
FINAL CODE AS SAMPLE TO OTHERS
This is my final script. It opens the big source HTML file and split in small ones with html correct syntax.
It searches for a line like <hr width="75%"><center><tt>-17-</tt></center><br> and then do the job.
Hope someone in need can use it to solve their...
YES, YES, YES!
I just get it to work by removing the ^. Since I'm using the command line, the output was just there like a baby after running.
Thank you all for the great help.
Best wishes
Gilnei Moraes
Thanks for the help but it produces no results (nor warning, nor erros, nothing).
Any sugestion?
Here is my script with your code:
use strict;
use warnings;
my $sentinel;
my $file;
$file = "personality.htm";
open(DATA,$file) or die "Can not open $file\n";
while (<DATA>) {
if (m[^</p><hr...
Hi,
I'm the most stupid programmer when using REGEX!
I have a huge html file and want to split in n small files.
Chuncks of texts to be saved in individual files begins with:
</p><hr width="75%"><center><tt>-387-</tt></center><br>
then the texts goes in multiple lines up to the next line like...
I tried bot modules to save the emails to a local directory but always get the text message with "=" or "=20" at the end of the line.
Does anyone knows how to clean this up and save it in plain readable text?
Hi fellows.
I'm open a html file and want to use the upper part only, just above a unique mark (<!-- SEGUNDA COLUNA -->) but I cant get it to work!
This is the html:
<html><head><title>my page</title></head>
<body>
this is my text<br>
and more...
<!-- SEGUNDA COLUNA -->
this is junk<br>
and...
This is not an Apache problem.
You have to ad this line in your BIND DNS config file for the domain.
Go to http://www.isc.org/products/BIND/ an read more.
Hi, all
I saw a Perl script compiled for use in Windows with a graphic interface (runs like any other Windows program!).
Can someone give some clue on how to compile like that?
Many thanks
No, the time is provided by a routine that caalculates the sunnrise and sunshine.
Here is the partial uglly code I'm getting in trouble:
#Sunrise = 6:53
#Sunset = 19:02
($hh,$mm) = split(/:/, $sunrise);
$in = (($hh*60)+$mm);
($ho,$mo) = split(/:/, $sunset);
$out = (($ho*60)+$mo);
$vv =(($out...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.