Geetha Weerasooriya wrote:
>
> Dear all,
>
> When I was reading a Perl code I found the following line. Can u
> please explain what it means?
>
> !defined($rt_nearest) or $dh<$dist or next;
Hi Geetha
Oh dear, it's not very readable is it! I assume you know what 'next'
does. If not, look at perld
basically code done by a hacker, not a software developer
if I'm correct this shall mine
if (not( ! defined($rt_nearest) or $dh<$dist)) {
next;
}
On 7/6/06, Geetha Weerasooriya <[EMAIL PROTECTED]> wrote:
Dear all,
When I was reading a Perl code I found the following line. Can u please
exp
On Jul 6, 2006, at 6:26, Geetha Weerasooriya wrote:
Dear all,
When I was reading a Perl code I found the following line. Can u
please
explain what it means?
!defined($rt_nearest) or $dh<$dist or next;
It means
next unless !defined($rt_nearest) or $dh < $dist;
or, equivalently,
next
Hi
I'm looking for an perl ncuses tutorial so I can write a remote admin app to
work via ssh ..
Many Thanks
--
Gregory Machin
[EMAIL PROTECTED]
www.linuxpro.co.za
Hello all,
I am using a script to parse a CSV file with approximately 65,000
records. Some of these records contain characters such as é, ì, etc.
I can read and write lines containing these characters via a file
handle, however when I try and parse the line using the module
Class::CSV, it fails
On Jul 6, 2006, at 10:41, Roman Daszczyszak wrote:
Does anyone have a suggestion for how I can handle this, or even where
I can look to solve this issue? Is there another possibility for
where the error is occurring that I am not seeing?
I would create the filehandle specifying the character
On Thu, 6 Jul 2006, Roman Daszczyszak wrote:
> Hello all,
>
> I am using a script to parse a CSV file with approximately 65,000
> records. Some of these records contain characters such as é, ì, etc.
> I can read and write lines containing these characters via a file
> handle, however when I try
I have script which running fine on FC5 (perl v 5.8.1) but not working
on RH9(5.8.0).
---
my $ldap = Net::LDAP->new($ldap_host);
die "Unable to contact $ldap_host\n" unless defined $ldap;
my $mesg = $ldap->bind;
$mesg = $ldap->search(
base => $ldap_base,
scope => 'one',
filter => "u
OK, perl almost has a problem with how many different ways to make web pages.
I was looking around for something that was simple but mostly fast and "common"
(meaning I'll find mention of it in job postings some day...).
Template and HTML::Template seem to be some pretty good starting points
Hi all.
Example code:
$dbh->bind_param_array(1, [EMAIL PROTECTED], \%attr);
$dbh->bind_param_array(2, [EMAIL PROTECTED], \%attr);
$sth->execute_array(\%attr)
I am trying to understand this example. I don't understand how the attr hash
is supposed to be buildt, but I guess it is supposed to (fo
Roman Daszczyszak wrote:
> Hello all,
Hello,
> I am using a script to parse a CSV file with approximately 65,000
> records. Some of these records contain characters such as é, ì, etc.
> I can read and write lines containing these characters via a file
> handle, however when I try and parse the l
Roman Daszczyszak wrote:
Hello all,
I am using a script to parse a CSV file with approximately 65,000
records. Some of these records contain characters such as é, ì, etc.
I can read and write lines containing these characters via a file
handle, however when I try and parse the line using the mo
> Hello,
>
> I have to write a "daemon" in Perl, with the quite simple structure below :
>
> sub test {
>while(1) {
> Oracle database connection;
> $state = result of a database query;
>
> if ( $state == 1 ) {
> call to another function;
> }
>}
> }
>
> My fu
Tom Allison <[EMAIL PROTECTED]> wrote:
> OK, perl almost has a problem with how many different ways to
> make web pages.
>
> I was looking around for something that was simple but mostly
> fast and "common"
You might also want to check out Embperl and Mason - the latter
being an extension buil
rob,
thanks, awesome help. I've been stuck on that part for too long.
i'm replying to the questions in your reply, but your solution worked,
so you can ignore this if youre busy.
-- Forwarded message --
From: Rob Dixon <[EMAIL PROTECTED]>
To: beginners@perl.org
Date: Thu, 06 J
sorry for the resend, i made a mistake in the subject line and didn't
want anyone folling the thread to miss the resolution.
-- Forwarded message --
From: Ryan Moszynski <[EMAIL PROTECTED]>
Date: Jul 6, 2006 1:57 PM
Subject: Re: beginners Digest 6 Jul 2006 08:41:28 - Issue 289
I have a pretty simple script that I am running on AIX 5.3 using
Perl 5.8.2. The script runs fine standalone, but when trying to run
it from a jsp running on a web site, I get the following:
ERROR: Can't load '/usr/opt/perl5/lib/5.8.2/aix-thread-
multi/auto/Socket/Socket.so' for module Socket: Ba
Are you sure that the user the jsp is running under has permissions to
the module directory?
-Original Message-
From: Ray Gebbie [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 06, 2006 12:45 PM
To: beginners@perl.org
Subject: Errors with dynamic extensions loading when running from jsp
I am trying to print out a hash of a hash of a hash table(with code
chunk 1), but I keep getting the following error:
Use of uninitialized value in hash element at ./clearwhite.pl line 522.
I don't understand where this error is coming from since I can process
a hash of a hash just fine, using
foreach $key2 (keys %{$top{$key{$key1}}}){ # line 522
Try:
foreach $key2 (keys %{$top{$key}{$key1}}){ # line 522
* Maybe it's a missing right curly brace around $key
~P
- Original Message -
From: "Ryan Moszynski" <[EMAIL PROTECTED]>
To:
Sent: Thursday, July 06, 2006 5:14 PM
S
Yes -- the module directories are readable by all.
Ray Gebbie
Federated Systems Group
San Francisco, CA 94102
415-422-1662
"Timothy Johnson"
<[EMAIL
Tom Allison wrote:
OK, perl almost has a problem with how many different ways to make web
pages.
I was looking around for something that was simple but mostly fast and
"common" (meaning I'll find mention of it in job postings some day...).
Template and HTML::Template seem to be some pretty
On Thu, 2006-07-06 at 17:14 -0400, Ryan Moszynski wrote:
> -
>
> 1 - Use of uninitialized value in hash element at ./clearwhite.pl line 522.
> ##
>
> print "Exists\n" if exists $top{$getgroup}{IOTESTS}{0} ;
> print "Defined\n" if defined $top{$
Gregory Machin wrote:
Hi
Hello,
I'm looking for an perl ncuses tutorial so I can write a remote admin
app to
work via ssh ..
Not really a tutorial but
Curses::UI
is what you will want to use
HTH
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR
Ryan Moszynski wrote:
i really hope thats overkill for my problem. I have my program
finshed, this is the last condition i have to deal with. Also, my
supervisor would prefer me not to use any nonstandard modules.
Why not, if it on CPAN its "standard". If its not bundled with the perl
you
Ray Gebbie wrote:
I have a pretty simple script that I am running on AIX 5.3 using
Perl 5.8.2. The script runs fine standalone, but when trying to run
it from a jsp running on a web site, I get the following:
ERROR: Can't load '/usr/opt/perl5/lib/5.8.2/aix-thread-
multi/auto/Socket/Socket.so' fo
Dear All,
Thank you so much for sending me the solution to my problem. It was the
first problem I asked and I am really happy I got very well explained
answers. I understood it well.
Thanks again for every one who take time to answer my question.
Kind regards,
Geetha
This aparently because of input is coming from and LANG=utf8
chomp($username=);
my $exists = ldap_search($username);
after set "LANG=en_US" it works.
Anyone know the reason?
Beast wrote:
I have script which running fine on FC5 (perl v 5.8.1) but not working
on RH9(5.8.0).
---
my $ldap =
Hi,
I try to install Tk module.
I have perl, v5.8.6
...make tests give
t/zzScrolled.NOK 66# Test 66 got: "589x341+0+32" (t/zzScrolled.t
at line 104 fail #2)
#Expected: "589x341+0+0" (Sizechk: geometry has not changed not reset for
-height => 24+(5))
# t/zzScrolled.t line
Thanks for the input ... The first place I looked was on cpan for the
modules, and then for the related docs and then googled ... then I posted on
this list then I googled more ... m
So I have had a better Idea, do you know of a working perl application (GPL
/ BSD) that I can view the source
30 matches
Mail list logo