Dear All,
I was trying to run my script getip.pl . But when i run this script it
gives following error
C:\strawberry\perl\Test>perl GETIP.pl
Can't locate Win32/Registry.pm in @INC (@INC contains:
C:/strawberry/perl/lib C:
/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at GETIP.pl line
Hi All,
I want to use Active Directory in Windows to authenticate my users from perl in
Linux servers.
Is there some way to do it?
--
xufengnju
2010-03-30
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: be
> "HP" == Harry Putnam writes:
HP> "Uri Guttman" writes:
>>> "HP" == Harry Putnam writes:
>>
HP> About that module Mail::Mailer. I still have lots of trouble reading
HP> code or docu written in the OOp format like the docs for that module.
HP> The part I'm asking about is
"Uri Guttman" writes:
>> "HP" == Harry Putnam writes:
>
> HP> About that module Mail::Mailer. I still have lots of trouble reading
> HP> code or docu written in the OOp format like the docs for that module.
> HP> The part I'm asking about is clear enough, but I couldn't find in the
>
> "HP" == Harry Putnam writes:
HP> About that module Mail::Mailer. I still have lots of trouble reading
HP> code or docu written in the OOp format like the docs for that module.
HP> The part I'm asking about is clear enough, but I couldn't find in the
HP> body of the docu, what it re
"Uri Guttman" writes:
> here is a simple use of a module i like. note that it would be easy
> to change the mailer if i wanted to. no need to know any
> quirks/syntax of each mailer. also note the nice argument list of
> the headers.
>
> #my $mailer = Mail::Mailer->new( 'sendmail', '/usr/sbin/sen
> "r" == rkb writes:
r> Lawrence Statton wrote:
>>
>> On Mar 29, 2010, at 10:54 AM, r...@i.frys.com wrote:
>>>
>>> I looked through perlop and was unable to find where it
>>> stated that the ternary operator should only be used in
>>> an
>>> assignment such as you've shown.
Uri Guttman wrote:
>> "r" == rkb writes:
[snip]
> r> I often use the ternary operator when working with
> r> dispatch tables. Based on your comment, I suspect
> that
> r> you feel that the following example is a poor use of
> the
> r> ternary operator. Please correct me if I'm wron
Lawrence Statton wrote:
>
> On Mar 29, 2010, at 10:54 AM, r...@i.frys.com wrote:
>>
>> I looked through perlop and was unable to find where it
>> stated that the ternary operator should only be used in
>> an
>> assignment such as you've shown. Can you point out
>> where
>> that's located.
>>
>
> I
> "r" == rkb writes:
r> Uri Guttman wrote:
>> when will people learn?? the ternary operator is for
>> CHOOSING A
>> VALUE. it is NOT for side effects. its precedence is
>> designed to allow
>> it to be assigned, NOT to have assignments done inside.
>>
>>
>> NEVER USE ?: f
On Mar 29, 2010, at 10:54 AM, r...@i.frys.com wrote:
I looked through perlop and was unable to find where it
stated that the ternary operator should only be used in an
assignment such as you've shown. Can you point out where
that's located.
In my reasonably-arrogant opinion: That's kind of
On Mon, Mar 29, 2010 at 10:27 PM, Shlomi Fish wrote:
>>
>> No. ($foo == 1) is a list which always has a value of either 1 or 0 so
>> it really return a true value in both cases.
>
> Not true:
>
> {{{
> shlomi:~$ perl -le '$foo = 0; print +($foo == 1) ? "Foo is 1" : "Foo is not
> 1"'
> Foo is not
Uri Guttman wrote:
> when will people learn?? the ternary operator is for
> CHOOSING A
> VALUE. it is NOT for side effects. its precedence is
> designed to allow
> it to be assigned, NOT to have assignments done inside.
>
>
> NEVER USE ?: for side effects. ALWAYS use it to return a
> value chosen
>
> "SHC" == Shawn H Corey writes:
SHC> On Mon, 29 Mar 2010 12:25:12 -0400
SHC> "Uri Guttman" wrote:
>> when will people learn??
SHC> They can't learn to do it properly because so much Perl documentation
SHC> is out of date.
and what is out of date regarding the ternary operator?
On Mon, 29 Mar 2010 12:25:12 -0400
"Uri Guttman" wrote:
> when will people learn??
They can't learn to do it properly because so much Perl documentation
is out of date.
--
Just my 0.0002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is a
> "SHC" == Shawn H Corey writes:
SHC> Assignment has lower precedence than ?: It is done last. What you
SHC> wrote above is:
SHC> (($foo == 1) ?
SHC> $bar = 0 :
SHC> $bar ) = 1;
SHC> Which assigns 1 to $bar regardless of what $foo is.
when will people learn?? the ternar
> "JP" == Jeff Peng writes:
JP> On Mon, Mar 29, 2010 at 10:02 PM, Jeff Soules wrote:
>> Hi all,
>> EX 2:
>> ($foo == 1) ?
>> $bar = 0 :
>> $bar = 1;
>>
>> These are logically equivalent, right?
JP> No. ($foo == 1) is a list which always has a value of eit
Jeff Peng wrote:
On Mon, Mar 29, 2010 at 10:02 PM, Jeff Soules wrote:
Am I missing something? I have the following chunks of code:
EX 1:
if ($foo == 1){
$bar = 0;
}else{
$bar = 1;
}
EX 2:
($foo == 1) ?
$bar = 0 :
$bar = 1;
Th
Jeff Soules wrote:
Hi all,
Hello,
Am I missing something?
Precedence.
perldoc perlop
I have the following chunks of code:
EX 1:
if ($foo == 1){
$bar = 0;
}else{
$bar = 1;
}
EX 2:
($foo == 1) ?
$bar = 0 :
$bar = 1;
These are logically eq
Many Thanks Simon, John and everyone else for pointing me to the correct
direction. Cheeers !!
Js
On Fri, Mar 26, 2010 at 7:03 PM, Shlomi Fish wrote:
> On Friday 26 Mar 2010 20:51:17 John W. Krahn wrote:
> > jet speed wrote:
> > > Hi,
> >
> > Hello,
> >
> > > I have a simple code below,
> > >
>
On Monday 29 Mar 2010 17:47:30 Eduardo Terzella wrote:
> Look with using PAR.
>
> pp -o testeC teste.pl
>
> teste.pl
>
> #!/usr/bin/perl
> print "Hello World\n";
>
> Size file:
>
> teste.pl => 4.0 k
> testeC => 3.6 M
>
> This is very strange, too increases the size of the fil
On Mon, 29 Mar 2010 17:27:44 +0300
Shlomi Fish wrote:
> Of course in this particular case, this is equivalent to:
>
> $bar = ($foo != 1);
>
> Unless you care about $bar specifically being 0 instead of the also
> false values of the empty-string or undef().
In that case, do this:
$bar = ( $f
>> Assignment has lower precedence than ?: It is done last.
Aha -- I was afraid of something like that.
> (I.e: put parentheses around the clauses of if statements, even though they
> are not needed or I could use the ultra-low-precedence "and"/"or"/etc.)
Good idea. I almost always do in if-st
test
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Replying to the list, next time - hit reply to all.
On Monday 29 Mar 2010 17:29:15 Eduardo Terzella wrote:
> I know it's possible to open my obfuscate your source code, but I want
> something just
> that impede it. I used the perlcc, so that the version of perl 5:10 I can
> not use it
> it. The PA
Hi,
On Monday 29 Mar 2010 16:23:14 eterzella wrote:
> Good morning,
>
> I used the perlcc to compile my perl scripts. In version 5.10 I can no
> longer
> use, I indicated the PAR to the compilation, put the files when
> compiled with the PAR are very large.
>
> This is normal when using the PAR?
Hi Shawn!
On Monday 29 Mar 2010 17:19:36 Shawn H Corey wrote:
> On Mon, 29 Mar 2010 10:02:15 -0400
>
> Jeff Soules wrote:
> > ($foo == 1) ?
> >
> > $bar = 0 :
> > $bar = 1;
> >
> > Am I doing something stupid or missing something obvious?
>
> ($foo == 1) ?
> ( $bar =
On Monday 29 Mar 2010 17:10:27 Jeff Peng wrote:
> On Mon, Mar 29, 2010 at 10:02 PM, Jeff Soules wrote:
> > Hi all,
> >
> > Am I missing something? I have the following chunks of code:
> >
> > EX 1:
> >if ($foo == 1){
> >$bar = 0;
> >}else{
> >$bar = 1;
> >}
> >
> >
On Mon, 29 Mar 2010 10:02:15 -0400
Jeff Soules wrote:
> ($foo == 1) ?
> $bar = 0 :
> $bar = 1;
> Am I doing something stupid or missing something obvious?
($foo == 1) ?
( $bar = 0 ) :
( $bar = 1 );
Assignment has lower precedence than ?: It is done last. Wh
Hi all,
Am I missing something? I have the following chunks of code:
EX 1:
if ($foo == 1){
$bar = 0;
}else{
$bar = 1;
}
EX 2:
($foo == 1) ?
$bar = 0 :
$bar = 1;
These are logically equivalent, right? But when I've run the latter,
$bar always com
On 29 March 2010 14:02, Jeff Soules wrote:
> Hi all,
Hiya,
> Am I missing something? I have the following chunks of code:
>
> EX 1:
> if ($foo == 1){
> $bar = 0;
> }else{
> $bar = 1;
> }
>
> EX 2:
> ($foo == 1) ?
> $bar = 0 :
> $bar = 1;
>
> These are lo
On Mon, Mar 29, 2010 at 10:02 PM, Jeff Soules wrote:
> Hi all,
>
> Am I missing something? I have the following chunks of code:
>
> EX 1:
> if ($foo == 1){
> $bar = 0;
> }else{
> $bar = 1;
> }
>
> EX 2:
> ($foo == 1) ?
> $bar = 0 :
> $bar = 1;
>
> These are
Good morning,
I used the perlcc to compile my perl scripts. In version 5.10 I can no
longer
use, I indicated the PAR to the compilation, put the files when
compiled with the PAR are very large.
This is normal when using the PAR? Is there any other option
hide my perl code?
--
To unsubscribe, e
Hello,
Now I'm using the code below:
use strict;
use SOAP::Lite +trace => 'all';
my $soap = SOAP::Lite->new( proxy =>
'http://192.168.1.100/Service/IndicatorsService.asmx');
$soap->default_ns('http://tempuri.org/');
$soap->on_action(sub { join '', @_ });
my $method = SOAP::Data->name('DataUp
Thanks Rob so much for the sample code.
I will try it following your direction, thanks.
On Mon, Mar 29, 2010 at 6:42 PM, Rob Coops wrote:
> Got it, I for got to indicate the arrays there. The code below will produce
> the following output.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.
On Mon, Mar 29, 2010 at 12:29 PM, Rob Coops wrote:
>
>
> On Mon, Mar 29, 2010 at 12:16 PM, Rob Coops wrote:
>
>>
>>
>> On Mon, Mar 29, 2010 at 11:57 AM, Jeff Peng wrote:
>>
>>> Thanks Rob.
>>> I have enabled "trace => all" when new the object, so I have been able
>>> to look what was happened.
On Mon, Mar 29, 2010 at 12:16 PM, Rob Coops wrote:
>
>
> On Mon, Mar 29, 2010 at 11:57 AM, Jeff Peng wrote:
>
>> Thanks Rob.
>> I have enabled "trace => all" when new the object, so I have been able
>> to look what was happened.
>> I think what I don't know is that how to built-up that a XML req
On Mon, Mar 29, 2010 at 11:57 AM, Jeff Peng wrote:
> Thanks Rob.
> I have enabled "trace => all" when new the object, so I have been able
> to look what was happened.
> I think what I don't know is that how to built-up that a XML request
> package with the format they required for posting.
>
> Je
On Mon, Mar 29, 2010 at 5:56 PM, Shlomi Fish wrote:
>1. SOAP::Lite is no longer recommended. You should use SOAP::WSDL or
>XML::Compile::SOAP instead. (According to the perlbot factoid on
>irc.freenode.org )
Thanks Shlomi, let me check them.
--
Jeff Peng
Email: jeffp...@netzero.net
Skype: compu
Thanks Rob.
I have enabled "trace => all" when new the object, so I have been able
to look what was happened.
I think what I don't know is that how to built-up that a XML request
package with the format they required for posting.
Jeff.
On Mon, Mar 29, 2010 at 5:49 PM, Rob Coops wrote:
>
>
> On M
On Monday 29 Mar 2010 12:36:20 Jeff Peng wrote:
> Hello,
>
> I want to post some data to a webservice which is .NET powered.
>
> The webservice's developer tell me the request should be:
>
> POST /Service/IndicatorsService.asmx HTTP/1.1
> Host: 192.168.1.100
> Content-Type: text/xml; charset=utf
On Mon, Mar 29, 2010 at 11:36 AM, Jeff Peng wrote:
> Hello,
>
> I want to post some data to a webservice which is .NET powered.
>
> The webservice's developer tell me the request should be:
>
> POST /Service/IndicatorsService.asmx HTTP/1.1
> Host: 192.168.1.100
> Content-Type: text/xml; charset=u
Hello,
I want to post some data to a webservice which is .NET powered.
The webservice's developer tell me the request should be:
POST /Service/IndicatorsService.asmx HTTP/1.1
Host: 192.168.1.100
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/DataUpLo
Hi all!
Someone please reply to this message fully quoting it so Dr. Ruud will receive
it.
On Sunday 28 Mar 2010 13:51:15 Dr.Ruud wrote:
> Harry Putnam wrote:
> > Shlomi,
> >
> > Sorry to butt in here... I've been noticing that notation:
> >
> > {{{
> >
> > bla
> >
> > }}}
> >
> > A few t
44 matches
Mail list logo