LDAP server

2014-12-04 Thread Jitendra Barik
Hi All, Could you please let me know please, why this code is not working as I am trying to validate my email id to my mail server? my $ldap_server = "google.com"; # or some local mail server my $ldap = Net::LDAP -> new($ldap_server) or die "This is Error: $@"; my $username = "username"; #ldap u

Re: Substitution operator is not working in perl - Windows OS

2014-12-04 Thread Jitendra Barik
Hi Shawn, it is VERSION. This is the not a issue. s/\%VERSION\%/$version1/g; the correct one. If I changed VERSION to VERSIONABC it is working correctly OR if I add more character to VERSION then it is working. I could not understand why it is not working for me. The first place in the file is n

WWW::Mechanize::field problem

2014-12-04 Thread Patton, Billy N
I’m having trouble with setting a field on a web page. Here is how I’m attempting to do this: ## ## fourth page ## ok($mech->form_name('ftp_information'),"getting the ftp_information form"); ok($mech->field('pFTPHostname','dogs'), 'Setting ftp host name to dogs'); ok($mech->field('pFTP

Re: Substitution operator is not working in perl - Windows OS

2014-12-04 Thread Shawn H Corey
On Thu, 4 Dec 2014 16:06:26 +0530 Jitendra Barik wrote: > My code is: > > $version1 = "JITENDRA"; > tie @array,Tie::File,"$rtf1" or die($!); > > for(@array){ > #print "Hi"; > s/\%VERSIONS\%/$version1/g; > > > } > untie(@array); > > FILE: > ***

Re: Substitution operator is not working in perl - Windows OS

2014-12-04 Thread Hans Ginzel
Hello, I am sorry, I don't know what are you doing wrong, but this code works for me. use strict; #use warnings; use Tie::File; my $file = 'file.txt'; my $version1 = "JITENDRA"; tie my(@array), 'Tie::File', $file or die "Cannot open file `$file': $!"; for(@array) { #warn "F: ", $_; s/%VER

Can't find EOCD signature Archive::Zip

2014-12-04 Thread Mike Flannigan
This is a very old problem that apparently still persists. Some or all gzip files created on Unix can't be unzipped by Archive::Zip (1.38). There are tons of old posts from 2005 that mention this problem, but apparently it is not an easy fix. Here is one link: http://www.perlmonks.org/?node_id

Substitution operator is not working in perl - Windows OS

2014-12-04 Thread Jitendra Barik
HI All, My code is: $version1 = "JITENDRA"; tie @array,Tie::File,"$rtf1" or die($!); for(@array){ #print "Hi"; s/\%VERSIONS\%/$version1/g; } untie(@array); FILE: *** *Version *%VERSION%, Hello,HI *Installation Notes* T

Two questions about perl resources

2014-12-04 Thread Ken Peng
Hello, #1. Is there a framework to send/receive the large binary data flow? I know thrift can do, but just don't like it. #2. Is there a native perl library to implement the features which 'iostat' command has? Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional