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

    grep with reqular expression

    how can i filter the numbers between 25-30? (the range is included) grep '[2][5-9]' filename; filters only 25 to 29. is there a solution for 25-30? thanks for the response.
  2. concino

    using a built in function in the module

    i'm trying to learn object oriented approach; when i tried to use ceil function in on of my subroutines it gives me undef function error. i've a .pm file where i have all my subroutines that belong to a class. in one of these subroutines i tried to use ceil function where i've gotten the...
  3. concino

    arrays again

    you can use index function: $pos = index ($string, $lookfor, $startPos); when used in loop you can all positions. $pos=-1; $startPos=0; while(($pos = index($string, $lookfor, $startPos))>-1){ print "Found at $pos\n"; $startPos=++$pos; }
  4. concino

    how to sort each list in the list of lists?

    yes, it works; just i dunno yet how to make it work with Data::dumper, but without it no problem. just use foreach to print: foreach (@list){ print "@$_\n"}
  5. concino

    how to sort each list in the list of lists?

    Thanks mikevh for your response. I've never used sort inside of a map, and it took some time to figure out, so the solution should be like this: map { @$_ = sort { $a <=> $b } @$_, $_ } @list;
  6. concino

    how to sort each list in the list of lists?

    yeah, but my co-worker is telling me that there is a much superp solution with map. I need that because i'm going to stick that sort to the behind of another map which does something else. So I should not use for(each) although I do have that working code which looks hairy. so it is going to...
  7. concino

    how to sort each list in the list of lists?

    I'm trying to sort each list in the list of lists without using foreach and flattening the two dimentional array. I already have a working code with foreach which does very complicated stuff, but I'd like to improve my code using map, so the only way it can be improved is to find a way to use...

Part and Inventory Search

Back
Top