Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: gm199
  • Order by date
  1. gm199

    Help on

    Kevin, THANK YOU VERY MUCH. You amaze me every single time!!!!!!!!
  2. gm199

    Help on

    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...
  3. gm199

    How do I keep the end of this line?

    Hey Kevin, I just learned on how to lean my code a bit! Thank you
  4. gm199

    Working with two files

    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.
  5. gm199

    Working with two files

    [medal] BINGO!!! Thank you all of you for the help. Have a very nice day as the one I will now after this problem solved! [2thumbsup]
  6. gm199

    Working with two files

    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.
  7. gm199

    Working with two files

    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...
  8. gm199

    Working with two files

    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...
  9. gm199

    Spliting 1 file in multiple

    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...
  10. gm199

    Spliting 1 file in multiple

    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
  11. gm199

    Spliting 1 file in multiple

    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...
  12. gm199

    Writing to a text file

    See if this helps: $replaceString =~ s{\n}{};
  13. gm199

    Spliting 1 file in multiple

    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...
  14. gm199

    Net::POP3 or POP3Client module HELP

    I tried bot modules to save the emails to a local directory but always get the text message with &quot;=&quot; or &quot;=20&quot; at the end of the line. Does anyone knows how to clean this up and save it in plain readable text?
  15. gm199

    Translating from Javascript to Perl = Math.floor();

    Can someone help me out? I'm converting a Javascript to Perl Cgi but dont know what function or command in Perl is similar to Math.floor() Thank you
  16. gm199

    Split problem

    Many thanks, problem solved!
  17. gm199

    Split problem

    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...
  18. gm199

    adding mail exchange to DNS file???

    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.
  19. gm199

    Compiling Perl?

    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
  20. gm199

    Time difference problem

    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...

Part and Inventory Search

Back
Top