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
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',
>
>
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->
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
$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
Hi all,
how can we pass hash to subroutine? and retrieving the hash in
subroutine to print values of hash.
Thanks,
Siva
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
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
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 = "
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
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
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/
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;
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
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
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
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
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
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
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
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
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
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
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
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/
25 matches
Mail list logo