Re: Unix command-line tools to edit SharePoint site?

2008-06-13 Thread Rob Dixon
Jack Trinh (jtrinh) wrote: > > SE CORRECT THEM FOR ME. > Thanks > JACK Hush -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: CGI FORM action

2008-06-13 Thread Gunnar Hjalmarsson
ken uhl wrote: my Forms are not "acting" nicely, page to page flow is not correct, Page one prompts for search criteria: ... $scriptname = $q->script_name(); ... ... The submit button goes nicely to second page results. Second page : ... $scriptname = $q->script_name(); ... ... Cou

Re: Unix command-line tools to edit SharePoint site?

2008-06-13 Thread Jack Trinh (jtrinh)
SE CORRECT THEM FOR ME. Thanks JACK -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2008 05:15 PM Pacific Standard Time To: beginners@perl.org Subject:Re: Unix command-line tools to edit SharePoint site? Kelley, I just comple

Re: Unix command-line tools to edit SharePoint site?

2008-06-13 Thread ericjhahn
Kelley, I just completed a project had to figure out how to create SharePoint calendar events from Perl. This was quite a chore, as MS's SOAP interface does not adhere to open standards. As such, I had to create my own custom SOAP requests that contained MS's CAML query language. See the example

CGI FORM action

2008-06-13 Thread ken uhl
my Forms are not "acting" nicely, page to page flow is not correct, Page one prompts for search criteria: ... $scriptname = $q->script_name(); ... ... The submit button goes nicely to second page results. Second page : ... $scriptname = $q->script_name(); ... ... This goes back t

Re: Calculating Percentile

2008-06-13 Thread Rob Dixon
Rodrick Brown wrote: > > I'm having a hardtime coming up with the correct formula for calculating > percentile on an array of random intergers. Anyone care to assist? > > #!/usr/bin/perl -w > use strict; > my @numbers = (10.22,20.33,22.3,11.3,12.4,8.3,10.4); > sub calc { > my ($p,$n) = @_; > r

Re: How can pass hash to subroutine ?

2008-06-13 Thread Jenda Krynicky
From: "Jeff Peng" <[EMAIL PROTECTED]> > On Fri, Jun 13, 2008 at 7:50 PM, sivasakthi <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > how can we pass hash to subroutine? and retrieving the hash in > > subroutine to print values of hash. > > > > Hello, > > Generally we use a reference. > > my %hash

Re: How to conditionally substitute in files?

2008-06-13 Thread Jenda Krynicky
From: "John W. Krahn" <[EMAIL PROTECTED]> > Siegfried Heintze (Aditi) wrote: > > Can someone explain to why I have to remove the $ from $IN and $OUT > > and remove the "my" in "my $IN" and "my $OUT" to make it work? > > Older versions of Perl could not use lexical variables for filehandles. And i

Calculating Percentile

2008-06-13 Thread Rodrick Brown
I'm having a hardtime coming up with the correct formula for calculating percentile on an array of random intergers. Anyone care to assist? #!/usr/bin/perl -w use strict; my @numbers = (10.22,20.33,22.3,11.3,12.4,8.3,10.4); sub calc { my ($p,$n) = @_; return $p/100 * ($n + 1); } printf "Perce

Re: Converting integer + mantissa to float

2008-06-13 Thread Jay Savage
On Fri, Jun 13, 2008 at 1:19 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > Jay Savage wrote: >> >> You're right, the mantissa may have leading zeros. Good catch. I need >> to keep them, though, or any later math will be off by multiple powers >> of ten. I'd completely missed that on the first go-aroun

Re: Program to fetch user information

2008-06-13 Thread Jay Savage
On Fri, Jun 13, 2008 at 11:19 AM, Gunwant Singh <[EMAIL PROTECTED]> wrote: > Hi there, > > I am still waiting for any suggestions/recommendations. > > Cheers. > please don't top-post. Most people only read this list at most once a day, and frequently less than that. Don't panic if you don't get a

Re: regex on the fly on LWP

2008-06-13 Thread Rob Dixon
Pat Rice wrote: > hi all > I want to know if there is a way of puilling out line by line, a > www::Mechanize or LWP > > so at the moment I'm doing: > > > > > 1 #!/usr/bin/perl > 2 > 3 # Include the WWW::Mechanize module > 4 use WWW::Mechanize; > 5 > 6 > 7 H

Re: Converting integer + mantissa to float

2008-06-13 Thread Rob Dixon
Jay Savage wrote: > > You're right, the mantissa may have leading zeros. Good catch. I need > to keep them, though, or any later math will be off by multiple powers > of ten. I'd completely missed that on the first go-around, but what I > really need is > > $x = sprinf "%u.%s", $int, $mantissa;

Re: Program to fetch user information

2008-06-13 Thread Rob Dixon
Gunwant Singh wrote: > > I am still waiting for any suggestions/recommendations. Yes, we can see that. Be patient. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Converting integer + mantissa to float

2008-06-13 Thread Jay Savage
On Thu, Jun 12, 2008 at 4:45 AM, Dr.Ruud <[EMAIL PROTECTED]> wrote: > "Jay Savage" schreef: > >> two integers as input that >> represent a single float. The first is the integer part, the second is >> hat mantissa. How do I recomine them into a single float? >> >> my $float = $int_part . '.' . $mat

Re: Program to fetch user information

2008-06-13 Thread Gunwant Singh
Hi there, I am still waiting for any suggestions/recommendations. Cheers. Gunwant Singh wrote: Hi Rob, I have interpolated the server and the user name as in this: /Win32::NetAdmin::UserGetAttributes("servername","myself",my $password,my $passwordAge,my $privilege,my $homeDir,my $comment,my

regex on the fly on LWP

2008-06-13 Thread Pat Rice
hi all I want to know if there is a way of puilling out line by line, a www::Mechanize or LWP so at the moment I'm doing: 1 #!/usr/bin/perl 2 3 # Include the WWW::Mechanize module 4 use WWW::Mechanize; 5 6 7 HTTP::Response; 8 15 16 $url = "

Re: Converting integer + mantissa to float

2008-06-13 Thread Jay Savage
On Wed, Jun 11, 2008 at 2:19 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > Jay Savage wrote: >> >> I'm having trouble wrapping my brain around this: >> >> I am writing a script that will receive two integers as input that >> represent a single float. The first is the integer part, the second is >> hat

Re: How can pass hash to subroutine ?

2008-06-13 Thread Jeff Peng
On Fri, Jun 13, 2008 at 7:50 PM, sivasakthi <[EMAIL PROTECTED]> wrote: > Hi all, > > how can we pass hash to subroutine? and retrieving the hash in > subroutine to print values of hash. > Hello, Generally we use a reference. my %hash = (1,2,3,4); mysub(\%hash); sub mysub { my $hashref = shif

How can pass hash to subroutine ?

2008-06-13 Thread sivasakthi
Hi all, how can we pass hash to subroutine? and retrieving the hash in subroutine to print values of hash. Thanks, Siva

Re: How to remove white space from middle of string?

2008-06-13 Thread Jeff Peng
$string =~ s/\s+//g; On Fri, Jun 13, 2008 at 3:00 PM, sivasakthi <[EMAIL PROTECTED]> wrote: > Hi all, > > How to remove white space from middle of the string? for example, > > $string="hello world welcome"; > > I want to print helloworldwelcome > > > > Thanks, > Siva > -- Jeff Peng - [EMAIL P

Re: Error while compiling GD

2008-06-13 Thread Patrick Kirsch
Santosh Reddy wrote: > LD_RUN_PATH="/usr/lib" cc -G GD.o -o blib/arch/auto/GD/GD.so > -L/usr/lib/X11 -L/usr/X11/lib -L/usr/lib -lpng -lz -lm -lX11 -lXpm > /usr/ucb/cc: language optional software package not installed > *** Error code 1 > make: Fatal error: Command failed for target `blib/arch/au

Re: Expect.pm passing $exp to subroutine ** line number correction

2008-06-13 Thread Noah
Hi John and List members, Your advice has come in useful but still I am unable to keep the expect object variable $exp from one subroutine to another subroutine. sometihng gets broken and not sure what it is. still running in to problems at line 168 (formerly 167). Here is line 168: "$exp->

Re: How to get scalar context of a list within a complex array

2008-06-13 Thread Brad Baxter
On Jun 12, 9:37 am, [EMAIL PROTECTED] (Christopher Morgan) wrote: > I have a complex array containing references to hashes. Some of the hash > keys point to anonymous lists. A typical element from this array looks like > this: > > { > > '_is_control_field' => '', > > '_ind2' => '0', > >

How to remove white space from middle of string?

2008-06-13 Thread sivasakthi
Hi all, How to remove white space from middle of the string? for example, $string="hello world welcome"; I want to print helloworldwelcome Thanks, Siva