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"...
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.
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...
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...
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...
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 |...
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 =...
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...
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.
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...
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...
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...
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 ) {...
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...
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.