Hello,
I was wondering if anyone could help me sort a hash by values.
Essentially my structure is this:
$hash = { id1 => { 'company' = value,
'units' = value,
'url' = value, },
id2 => { 'company' = value,
'units' = value...
Hi all-
I'm basically trying to write a script that will generate statistics for each configuration setting we have in our application.
There is about 70 settings. There's about 300 configuration files. I need to generate reports for each of the 70 settings. Basically: Setting A is "true" for...
Hi guys-
I'm trying to test whether nested hash refrences exist, like so:
my %ref = (
'app' => {
'next' => {
'further' => 10
}
}
);
if (nested_exists(\%ref, 'app', 'next', 'further')) {
do whatever.....
}
sub nested_exists {
my ($ref, @keys) = @_;
.....i just...
Hey guys-
I can't seem to do this. Everything I try fails.
I have the ID of the Div... and I create controls dynamically within that div. I want to change the styles of those elements within the div.
How can I do this?
I've tried: var children = document.getElementById('id').getChildren()...
Hi guys-
Here's what I have thus far:
#!/usr/bin/perl
use strict;
my $var = 'C:\Documents and Settings\blah\File-Upload1.doc';
$var = ($var =~ /\\([\w\- ]+\.[\w]+)$/) ? $1 : $var;
print "$var\n";
Everything works. The only problem is *special* characters. If I add in support for all the...
Hi guys-
I have a bit of a problem. Basically, I'm trying to loop through the code to our application, and find all instances of the function gettext(). I then want to extract the first parameter of this function and throw it in a file for later processing. All is well, I can do this, the...
Hi, I'm not posting to actually ask for code, but rather, can Perl handle "AND"s in regular expressions? Like... I want to test a pw to make sure it has at least 1 capital letter, 1 lower case letter and one non-alphanumeric letter... but this has to be done in a ONE line regular expresion...
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.