Re: Changing user in perl

2004-06-12 Thread Daniel Staal
--As of Friday, June 11, 2004 1:10 PM -0700, Tham, Philip is alleged to have said: I am trying to execute a perl script from html. However this is to be executed by a certain user and the script also updates files in the system. Is there a was I can do a chuser and set the s-bit. --As for the res

Microsoft Word and Perl

2004-06-12 Thread Ilaiy
I have been trying to update my word document using perl, i used $word->Selection->WholeStory; $word->Selection->Fields->{Update}; But this is a little slow and at times doesnot update completely. I modified the code and right now getting a wired error but the same in VBA works really well . m

Re: Elegant quoted word parsing

2004-06-12 Thread Zeus Odin
But this output is not at all similar to the output desired in the original post by Beau E. Cox. Your solution merely splits on all delimiters. -ZO "David Storrs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Personally, I would do this: > > #!/usr/bin/perl > use Text::ParseWords

Re: Elegant quoted word parsing

2004-06-12 Thread David Storrs
On Fri, Jun 11, 2004 at 10:08:23AM -0500, James Edward Gray II wrote: > On Jun 10, 2004, at 9:46 PM, Beau E. Cox wrote: > > >Hi - > > > >I am trying to come up with a simple, elegant word parsing script, > >that: > > > >* takes a scalar string, and > >* splits it into words separating on white sp

Re: Very wierd problem with CGI.pm

2004-06-12 Thread David Storrs
On Fri, Jun 11, 2004 at 01:07:54PM +0100, mike wrote: > Has anyone ever come accross this wied problem before > > I have a script which pulls records from a DB then loops into a form and > shows each record, with the id no being concatenated to the field name > to give a unique record id. > > How

Re: safe regex in variable

2004-06-12 Thread Randy W. Sims
On 6/11/2004 11:49 PM, Jupiterhost.Net wrote: Randy W. Sims wrote: JupiterHost.Net wrote: Do what I'd like to be able to do is: my ($find,$replacewith,$case) = $dbh->selectrow_array($query); $string =~ s/$find/$replace/gi if $case; $string =~ s/$find/$replace/g if !$case; Since a user could put wh

Re: Query on Split

2004-06-12 Thread Randy W. Sims
On 6/12/2004 8:33 AM, Rob Dixon wrote: John W. Krahn wrote: Sudhindra K S wrote: Hi Hello, I have a file with lines as shown below //abc/... - //xyz/... //abc1/... - //xyz1/... Now i want to split the lines at "-" and get the string on the left in one array and the string on the right in another a

Re: Query on Split

2004-06-12 Thread Rob Dixon
John W. Krahn wrote: > > Sudhindra K S wrote: > > > > Hi > > Hello, > > > I have a file with lines as shown below > > > > //abc/... - //xyz/... > > //abc1/... - //xyz1/... > > > > Now i want to split the lines at "-" and get the string on the left in one > > array and the string on the right in ano

Re: returning problem of regexp

2004-06-12 Thread David Storrs
On Fri, Jun 11, 2004 at 09:10:48AM +0200, Graf Laszlo wrote: > Hi Ziggy > > You got me wrong. Anyway thanks for example. > Take a look here: > > #!/usr/bin/perl > @str = (); > push @str, "\n"; > push @str, "\n"; > push @str, "BBB\n"; > push @str, "\n"; > push @str, "\n";#<- watch