RE: Formats

2002-12-11 Thread Dave Chappell
Please disregard, after a day of hair-pulling and hacking I managed to figure it out. Dave C. -Original Message- From: Dave Chappell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 11:52 AM To: [EMAIL PROTECTED] Subject: Formats Attached is one of a few (work in

Formats

2002-12-10 Thread Dave Chappell
Title: Message Attached is one of a few (work in progress) scripts that I am creating to report on security events in a M$ network. The issue I am having is, the second format, STDBODY is not printing. Since STDBODY can contain many lines I even tried adding  ~~ to the fieldline as suggested

RE: P3P

2002-12-02 Thread Dave Chappell
This may help, P3P::ToCP - Perl module to convert P3P policies into CP representation: http://2shortplanks.com/temp/P3P_ToCP.html http://twoshortplanks.com/temp/P3P-ToCP-0.02.tar.gz Regards, Dave -Original Message- From: Davide Copelli [mailto:[EMAIL PROTECTED]] Sent: Monday, Decemb

File positions and seek

2002-07-13 Thread Dave Chappell
I am trying to use the seek function to force where my second while loop starts within file tst.txt but I see the $. Gets reset to 0 before while () starts. My ultimate goal for this script is when a web page loads on my site. The script executes, reads portions of tst.txt that have changed s

slectively load modules

2002-06-22 Thread Dave Chappell
I am creating a script that runs both on win9x and NT/2000/XP and based on which OS the script is run on, certain OS specific features are performed with modules like Win32::Service. When I run the script in a Win9x environment I get an error; "The Win32::Service module works only on Windows NT".

Matching a range

2002-05-10 Thread Dave Chappell
print OUT; } } Regards, Dave Chappell -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

examining a file line-by-line

2002-04-15 Thread Dave Chappell
/; print OUT; } Regards, Dave Chappell

Extracting values from hash keys

2002-04-11 Thread Dave Chappell
Hi, I have a hash that will have some keys contain single values and other keys that will have multiple values: %hash = ( key1 => 'test-1', key2 => ['test-2-0', 'test-2-1'], key3 => 'test-3' ); I want to loop t

RE: Cleaning poorly formated csv files

2002-03-16 Thread Dave Chappell
Thanks. I got lots to learn about perl, thinking for the 2 hours I was trying to solve my issue with chomp and split. I have began disecting your reponse to learn from it. One question, the last print statement: print $_ . "\n"; what is the significance of the . ? when I remove it nothing is d

Cleaning poorly formated csv files

2002-03-16 Thread Dave Chappell
Hi, I’m new to perl and this list. I am trying to create a script that cleans up csv files in the following ways: -Remove tab characters -Remove trailing commas -Replace ^’ character sequence with a comma -Want to preserve the CRLF and the end of each line Then I output the results to another f