Flush?

2001-09-04 Thread John Way
I have been asked to see if perl writes to a filehandle directly or if the data is buffered? If it is buffered, is there a command in perl like the c command "flush"? Thanks, John Way Confidentiality Notice: *** Privileged/Co

Re: Doing some text parsing

2001-09-04 Thread John Way
test =~ s/^$pattern//; } print "$test\n"; Here is another way.. $test = "L54"; $pattern = "L"; if ($test eq $pattern) { $test = reverse($test); chop ($test); $test = reverse $test; print $test; } John Way IS Professional Phone (864)503-2939 Fax (8

Re: regex: can't match pattern... dang

2001-09-04 Thread John Way
This worked fine for me! $_ = "nobody Wed Aug 22 12:32:22 2001 I"; print "$_\n"; $_ =~ s/^(.{7})\s+?(.{24})\s+?(\S+)$/$1,$2,$3/; print "User = $1\n"; print "Date = $2\

Use of uninitialized value in concatenation (.) or string at mlknpvs.pmline 241

2001-09-04 Thread John Way
++; @parts = split(/\./,$name); substr($parts[1],0,0) = "."; #LINE 240 John Way IS Professional Phone (864)503-2939 Fax (864)503-2444 Internal 246-2939 Confidentiality Notice: *** Privileged/Confidential information may be contained in

Writing a log file?

2001-08-28 Thread John Way
ed in case of an error to see where the program blew up. Is there a better way to do accomplish this? I am trying to emulate the "set verify" command from VMS DCL Thanks, John Way Confidentiality Notice: *** Privileged/Confidential inf

Re: beginners Digest 12 Aug 2001 17:12:18 -0000 Issue 313

2001-08-13 Thread John Way
I am new to the list and just starting to learn perl. Can anyone tell me how to process a form into a text delimited file or even what a text delimited file is. I hope this isn't a stupid question. Thanks Allison Are you talking about an HTML form? This is not a stupid question, but a perfe

RE: Frustrated installing modules!?!

2001-08-08 Thread John Way
ing this link straight into a browser or not. Any other ideas?? John Way

Re: Deleting leading/trailing whitespace

2001-08-08 Thread John Way
try this... $string = " text "; print "Before regex:\"$string\""; $string =~ s/^\s+|\s+$//g; print "After regex:\"$string\""; (the "|" indicates an OR) John Way Confidentiality Notice: **

Frustrated installing modules!?!

2001-08-07 Thread John Way
c:\perl>nmake " I get the message "'nmake' is not recognized as an internal or external command,operable program or batch file." I searched the entire hard drive, but there is no nmake or nmake.* Neither of these methods worked for me and I can't locate any