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 dencom 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: ericse
  • Content: Threads
  • Order by date
  1. ericse

    Sort hash ref values?

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

    Comparing hash structures?

    Hello all, I'm trying to compare hash structures and return the unique values of each hash. my $hash1 = { 'add' => { 'val1' => 1, 'val2' => 1, 'val3' => 1 }, 'remove' => { 'val4' => 0, 'val5' => 0...
  3. ericse

    GREPing large amounts of data.

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

    Recursion?

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

    Get all child elements within a DIV?

    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()...
  6. ericse

    regex to grab file name from path?

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

    Help with parsing a Perl file in Perl.

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

    Regular Expression question???

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

Part and Inventory Search

Back
Top