Re: reg exp

2005-03-05 Thread DBSMITH
#!/usr/bin/perl ## Set pragmas (LC) and modules (UC) $^W = 1; use strict; use strict 'subs'; ## Begin Logic $ENV{"PATH"} = qq(/home/root:/usr/bin:/usr/sbin); my $w="40"; my $total="0"; my $outfile1 = qq(/home/root/tsm2_clients.out); my $outfile2 = qq(/home/root/tsm2_clients.plout); open (FF, "

RE: reg exp

2005-03-05 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: : #!/usr/bin/perl : : ## Set pragmas (LC) and modules (UC) : : $^W = 1; If you are using a recent version of perl this is better. Read perllexwarn for details. use warnings; : use strict; This statement includes 'vars', 'subs', and

Re: reg exp

2005-03-05 Thread John Doe
Hi Derek > #!/usr/bin/perl > > ## Set pragmas (LC) and modules (UC) > > $^W = 1; > use strict; > use strict 'subs'; > > ## Begin Logic > > $ENV{"PATH"} = qq(/home/root:/usr/bin:/usr/sbin); > > my $w="40"; > my $total="0"; > my $outfile1 = qq(/home/root/tsm2_clients.out); > my $outfile2 = qq(/home/

Invocation environment detection

2005-03-05 Thread Peter Rabbitson
How would I implement a simple detection mechanism, to be able to run the same script from he commnd line and from cgi, having the script behave differently depending on the invocation? (e.g. change the content type and other formatting stuff) Thanks Peter -- To unsubscribe, e-mail: [EMAIL PROT

Re: Can Perl 'nice' a process?

2005-03-05 Thread Gerhard Meier
On Fri, Mar 04, 2005 at 02:31:11PM -0600, Dave Kettmann wrote: > Im sure Perl can nice a process but I guess I dont know what > the correct term is. I guess if I just start with the correct > term I can discover how to use it. Then again, I may just have to > 'nice' it in the shell. Any help is app

Re: Invocation environment detection

2005-03-05 Thread John Doe
Am Samstag, 5. März 2005 19.48 schrieb Peter Rabbitson: > How would I implement a simple detection mechanism, to be able to run the > same script from he commnd line and from cgi, having the script behave > differently depending on the invocation? (e.g. change the content type and > other formattin

Re: Invocation environment detection

2005-03-05 Thread Peter Rabbitson
What if I want it to be able to run under everything: * CGI (html output) * Linux tty (text only output) * ActivePerl (text only output + some workarounds for braindead OS) (Sorry, forgot to CC) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Invocation environment detection

2005-03-05 Thread John Doe
Hello Peter Am Samstag, 5. März 2005 23.41 schrieb Peter Rabbitson: > What if I want it to be able to run under everything: > > * CGI (html output) > * Linux tty (text only output) > * ActivePerl (text only output + some workarounds for braindead OS) Concerning ActivePerl under Windows I don't kn