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

    Regex Question

    Hi, I am having difficulty groking this regex stuff. I have a string: "SomeStuff D: Drive is full" In perl I can do something like if (my $var =~ /\s{1}.:\s/) { ...} where I can check the string to see if there is any occurance of space-anyletter-colon-space I am trying to do the same in...
  2. AcidHawk

    Regex question

    Hi, I am having difficulty groking this regex stuff. I have a string: "SomeStuff D: Drive is full" In perl I can do something like if (my $var =~ /\s{1}.:\s/) { ...} where I can check the string to see if there is any occurance of space-anyletter-colon-space I am trying to do the same in...
  3. AcidHawk

    Loading Module using scalar variable

    Hi I have tried to write 2 different Modules. I want to be able to load either one or both based on an ini file that is read at the start of a perl script. 1) Something like read ini and create the mods array. 2) If the mods array has mod_a,mod_b load both using a foreach statement. So my...
  4. AcidHawk

    ARGV into a $var

    Hi I'm trying to get the 3rd parameter to the last parameter put into a scalar variable. I then want to split the scalar var(no problems here though..) This is not working.. $var = @ARGV[2..$#ARGV]; print $var; If i run this like so.. perl prog.pl useless useless var:i:want:up until this...
  5. AcidHawk

    Access DBD-RAM table from another script

    Hi Where do I start.. I have a database table that I am writing a perl script to update. The requirement is for me to load the table into memory and access it there, then when there are updates, update the in-memory table as well as a flat file and once an hour write those updates from the...
  6. AcidHawk

    Auto Refresh based on Checkbox

    Hi I'm trying to auto update a web page every 5 secs based on a check box on a previous page. Here's my code.. PAGE 1 print &quot;<form action=./somescript.pl method=post><center>\n&quot;; print &quot;Enable Auto Update \n&quot;; print &quot;<input type=\&quot;checkbox\&quot...
  7. AcidHawk

    Validate Response from a Chomp

    Hi I am trying to validate that the user only enters a (Yy/Nn) this is what i have but it does not work..:( it comes out of a bigger script but the validation is what im having a problem with sub ques_noargs { print &quot;Fetch Performance Data for ALL servers in cube Directory...
  8. AcidHawk

    Compare fields in rows from CSV file

    Hi, I am wanting to find uniqueness in a csv file. Detail: the csv file looks loke this.. DATE,Time,Name,Location 03/03/2001,08:00:00,Server1,DBN 04/03/2001,13:20:13,Server1,DBN 04/03/2001,15:35:00,Server2,CPT 04/03/2001,16:00:16,Server1,JHB etc... I want to do something different if...

Part and Inventory Search

Back
Top