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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cnw40007

  1. cnw40007

    open a file from a directory

    That worked thanks very much for your help cnw40007
  2. cnw40007

    open a file from a directory

    Hi, I was wondering could anybody show me how i would open a number of files from a directory.Each file begins with qfh and then a series of different numbers and letters. My code below prints out the specified files but i need to open them to search for a certain word. Can you help me please...
  3. cnw40007

    save a mysql database

    great that worked, how do i save it onto another linux machine?
  4. cnw40007

    save a mysql database

    hi is it possible to save a mysql database onto a floopy to use on another computer?If so how would i go about it?Thanks cnw40007
  5. cnw40007

    insert into database

    I have two fields named email and subject and i want to update the email field. $myvar holds the email address so would i use INSERT INTO addsubj VALUES ('$myvar');
  6. cnw40007

    remove from an array to a temp file

    Ok this is my problem. I have a file which contains email header info.I have written code below to parse through it for the To: line off a spreadsheet of usernames.Once i get a match what i would like to do is move that particular header to another file.At the moment it just rewrites the entire...
  7. cnw40007

    insert into database

    I have modified my code $action is set to the email address and it is then set back to 'No' to start the loop again, if(/^Subject:/ && $action eq 'Yes') { $myvar = $_; $myvar =~ s/: /: !SPAM!/g; print $myvar; $action = 'No'; } if(/^From:\s([0-9a-zA-Z\.\-\_]{13,})+\@[0-9a-zA-Z\.\-]+$/) {...
  8. cnw40007

    email regular expression

    Hi below are 2 regexps that i have tried. Either are supposed to print out any email that has a number in the higher domain.There not giving me any errors but there not working either can anybody show me an easier way please. -- ([0-9a-zA-Z\.\-\_])+\@[0-9a-zA-Z\.\-]\.[\w]{4,5}[0-9]{1,})$/ ) --...
  9. cnw40007

    delete from database

    OK great i tried that and it worked.Thanks again for your help. cnw40007
  10. cnw40007

    insert into database

    Hi my code below checks an email address of stored email address in a mysql database and if it isn't in the db insert it. The problem is it is inserting it but when i view the databse there is just a blank line but yet the row number has gone up. if( /^From...
  11. cnw40007

    delete from database

    Hi I have a mysql database with various email addresses.There are a number of blank rows that i want to get rid of. Ive tried delete from addsubj values ('',''); but nothing happens. Can anybody help me please. Thanks cnw40007
  12. cnw40007

    simple question

    I tried both examples.with the first one i don't know where the end of the paragraph will be, so i couldn't get the program to run and the second example i ran it but it didn't do anything.Basically the way my program works is it matchs for a certain email address and if it is found it will...
  13. cnw40007

    simple question

    Hello, How would i go about matching a word from a file and taking out the word and everything below it until it reaches a blank line and put it into another file in perl???
  14. cnw40007

    insert into database

    Im not sure what you mean, can you explain?Thanks
  15. cnw40007

    insert into database

    Hi I'm trying to enter values into a mysql databse from my webserver.My problem is that from the web server i can enter a value into the database, it tells you the value has been entered but when i check the databse it is not there. This is my code #!/usr/bin/perl use CGI qw(:standard); use...

Part and Inventory Search

Back
Top