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 strongm 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: *

  1. Extension

    Pattern Matching Expression (HTML tag)

    Thanks again dkyrtata Everything is working fine. Thank you again for the help. Really appreciated.
  2. Extension

    Pattern Matching Expression (HTML tag)

    Thanks again dkyrtata for the help. I just realized my last post wasn't really accurate. When I said I would like to only accept <input> and <select>, I didn't tell you there's could be some stuff before and after the name="xxx". Example: <input type="text" name="state" size="32"...
  3. Extension

    Pattern Matching Expression (HTML tag)

    Thanks a lot dkyrtata Really appreciated. I really have to improve my RegEx skills. How complicated to make the RegEx only accept <input name="xxxx"> or <select name="xxxx">. This way, it would ignore any other tags with "name" in it, such as <meta name="xxxx">. Thanks again.
  4. Extension

    Pattern Matching Expression (HTML tag)

    Thank you dkyrtata for the help. Really appreciated. Your Regex does work but the HTML content I'm trying to process has many <> tags in it. What I'm trying to do is to "echo" the value of the following variables (could be more variables) in the HTML content. Here are the variables to...
  5. Extension

    Pattern Matching Expression (HTML tag)

    I need some help to come up with a pattern matching expression. I need to process some HTML content and change one specific HTML tag: <input> So I open the HTML file and place the content into an array. This is part of the array (HTML content) I need to process. So I want to change this...
  6. Extension

    Print array with comma separating elements

    Thanks to both of you for the help. Really appreciated.
  7. Extension

    Print array with comma separating elements

    Hi, I'm trying to find a simple way to print an array with a comma separating each element. But a need a way to apply "styles" specific to each element; <span class="{style}"> before, and </span> after each element. Is it possible to use the "print join" and still be able to apply specific...
  8. Extension

    Table joining (w/ sub-query)

    PWise Thanks a lot for the help and the quick reply. Really appreciated !!! Your query works perfectly. MajP Thanks for the quick reply.
  9. Extension

    Table joining (w/ sub-query)

    Hi, I need some help with a fairly simple query. Here's all the details : Note: This is not the actual data. This sample data will make it easier to explain. Table: Course ______________________________________ ID_Course | Name 20 | Math 21 | Chemistry 22 | Arts 23 | History 25 |...
  10. Extension

    Dynamic form variables (_POST)

    Thanks to everyone for the help. tsuji: This is exactly what I was looking for. Thanks.
  11. Extension

    Dynamic form variables (_POST)

    Hi, I need to loop through all the records in an XML file and check if a specific record (user_id) exist in the form submitted. The form field names match the user_id from the XML file. I assume it's a stupid error but when I execute the script, I get an "Illegal offset" error. $users =...
  12. Extension

    Perl Error Handling

    That's what I'm doing for files but I'm looking for something that will cover syntax errors, missing modules/subroutines. Thanks again
  13. Extension

    Perl Error Handling

    Hi, I'm currently Carp for error handling on my development server. I like the fataltobrowser subroutine for debugging. Now I'm looking for a routine/sub-routine that would handle errors in production. I simply want to display a HTML message if there's an error ("out of service" type of...
  14. Extension

    Populate Hash of Arrays (Relationship)

    Yeah I know (right now I'm testing using Alpha data with "cmp"). But my issue is happening because I'm storing the sorting "statement" in a sub-routine.
  15. Extension

    Populate Hash of Arrays (Relationship)

    Kevin: Yes.. That was changed. But it didn't fix the problem. When I change this # Third Level for my $records (sort sortHash keys %{ $userList{$Level2}{$Level3} }) { #### } to this # Third Level for my $records (sort { $userList{$Level2}{$Level3}{$a}[2] cmp...
  16. Extension

    Populate Hash of Arrays (Relationship)

    Hi Guys, I was able to come up with a solution to populate the hash. But now I have another question. I want to sort the hash either by numeric or alpha order. I created a sub-routine that would take care of applying the right sorting. I guess I'm doing something wrong cause it's not...
  17. Extension

    Populate Hash of Arrays (Relationship)

    I'm stuck again !!! I'm trying to build a hash (of arrays) that would capture the relationship of the DATA below. I guess I lack of knowledge in regards to hashes because I don't know how to populate a hash when you don't know how many keys (levels) you'll have. I can post my code if necessary...
  18. Extension

    Populate Hash of Arrays (Relationship)

    Thanks to KevinADC and Prex1. Your help was really appreciated.
  19. Extension

    Populate Hash of Arrays (Relationship)

    Ok. Learned something new because I thought it was ok to do that. Like this is working fine even if they share the same top level key. for ($count = 1; $count <= 12; $count++) { $userList{'12'}{$count} = [ "User no. : " . $count ]; } foreach my $topLevel ( keys %userList ) {...
  20. Extension

    Populate Hash of Arrays (Relationship)

    Kevin: You answered part of my question because I wasn't certain if it was "legal" to leave a hash key empty. Is there an acceptable way to populate a hash (of Arrays) that could reflect the structure I'm looking for ? I want a structure like this: {STATE_ID}{CITY_ID}{USED_ID} => [@Array of...

Part and Inventory Search

Back
Top