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 Chris Miller 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. inspleak

    Using $cgi->param('myname') as a string

    ah, sorry that was a typo on my part. (I wasn't actually at the machine when I posted) In the actual code it does say "stuff".$myNewName Sorry for the confusion. So unfortunately the issue still remains. Thanks very much for the reply though!
  2. inspleak

    Using $cgi->param('myname') as a string

    Hey guys, I seem to not fully understand what is returned by using $cgi->param('myName'); I'm trying to do add on a bit to the myName argument. It looks like this: use CGI; my $cgi = new CGI; $myNewName = $cgi->param('newName'); $myNewName = "stuff".$newName; then it would be called...
  3. inspleak

    Print not printing every time..

    Ahh ha! This fixed it: #save old file handle and set STDOUT as default my $oldFileHandle = select STDOUT; #I think this forces a flush of the selected output $| = 1; #restore old file handle select $oldFileHandle; Thanks!
  4. inspleak

    Print not printing every time..

    It seems as though this may have something to do with the fact that I have open files and I am printing to them at other points in the code... I could be totally wrong, but figured I should mention it.. thanks!
  5. inspleak

    Print not printing every time..

    Hey guys, quick question.. I'm trying to make a little progress indicator like [23/1000] or something like that. What I figured I could do is go through the loop and at the end of the loop: print "\r [$myPart/$myTotal]"; However it only seems to print the very last one. So I tried: print...
  6. inspleak

    Making 5.1.1 not match 58180

    Nope... but thanks for the info... Didn't know you could get the version that way.. pretty cool. Thanks!
  7. inspleak

    Making 5.1.1 not match 58180

    ahh.. I see.. thanks for the explanation! It really does make sense..
  8. inspleak

    Making 5.1.1 not match 58180

    That worked great! Thanks so much! This leads me to one more question then... why two '\' characters? Why doesn't one work by it self? Thanks again!
  9. inspleak

    Making 5.1.1 not match 58180

    Hey guys.. one more quick question and I promise I will leave you alone for a bit :) Essentially all I want to do is match the string "5.1.1". However I have noticed that PERL treats the '.' as a special character and '\.' doesn't seem to change it. The following code gets a match for "5.1.1"...
  10. inspleak

    New to RegEx

    yes... like trying to take over the world! (*que theme song* pinky and the brain, brain, brain, brain, brain....) Thanks again everyone..
  11. inspleak

    New to RegEx

    Thanks for the advise guys I got it working! :) icrf - actually its for the exact opposite. It is running through the rejected email que to put those email addresses into the "Do not send" list. Worry, not I will save my evil tokens for another day :) Thanks again!
  12. inspleak

    New to RegEx

    Hey guys. I've got a couple of questions, I found this someplace while looking for ways to find email addresses in a file: /(\S+\@\S+\.\S+)/ If I understand this correctly it finds any non-whitespace word (\S) then expects an "@" then matches any non-whitespace word, then a "." then any...
  13. inspleak

    Step through Array of Arrays with unknown Size

    ahhhh... yes.. very cool.. thanks man!
  14. inspleak

    Step through Array of Arrays with unknown Size

    Hey guys... here is the situation: @list1 = ("one", "two", "three"); @list2 = ("myList2"); @fooList = ([@list2], [@list1]); Basically what I want to do is walk down each array in @fooList. For instance I want to read data from @list2, element at a time, then @list1, but I want to be able to add...

Part and Inventory Search

Back
Top