Re: Moving between directories

2003-06-29 Thread T.S. Ravi Shankar
Mr. Sudharshan, Very thanks for your quick reply ! So do you say that it is not possible through any means to change the directories (since we are moving between the shells) ? ( I was trying to build PERL equivalents of pushd & popd (Unix utilities by using cd inside the perl script ). Hence I

Re: Help perl

2003-06-29 Thread Sudarshan Raghavan
vemulakonda uday bhaskar wrote: hi all This is the 5'th copy of your mail, please don't send multiple copies thanks for the reply. i got the Net::FTP module installed and my code is working my code is as follows : #!usr/bin/perl use Net::FTP; $ftp=Net::FTP->new("192.168.255.xxx") or dir

Re: Moving between directories

2003-06-29 Thread Sudarshan Raghavan
T.S. Ravi Shankar wrote: Hi all : Could anyone tell me how I could move between the directories ( or change the present working directory ) with any perl command ?? I have tried these system '/bin/cd $HOME'; , chdir '$HOME'; , exec 'cd $HOME'; After I execute the perl code, the PWD still re

Re: Moving between directories

2003-06-29 Thread John W. Krahn
"T.S. Ravi Shankar" wrote: > > Hi all : Hello, > Could anyone tell me how I could move between the directories ( or > change the present working directory ) with any perl command ?? > > I have tried these system '/bin/cd $HOME'; , chdir '$HOME'; , > exec 'cd $HOME'; > > After I execute the

Help perl

2003-06-29 Thread vemulakonda uday bhaskar
hi all thanks for the reply. i got the Net::FTP module installed and my code is working my code is as follows : #!usr/bin/perl use Net::FTP; $ftp=Net::FTP->new("192.168.255.xxx") or dir "Cannot be connected"; $ftp->login("",""); $ftp->get("filename"); this is for file transfer through FT

Help perl

2003-06-29 Thread vemulakonda uday bhaskar
hi all thanks for the reply. i got the Net::FTP module installed and my code is working my code is as follows : #!usr/bin/perl use Net::FTP; $ftp=Net::FTP->new("192.168.255.xxx") or dir "Cannot be connected"; $ftp->login("",""); $ftp->get("filename"); this is for file transfer through FT

Help perl

2003-06-29 Thread vemulakonda uday bhaskar
hi all thanks for the reply. i got the Net::FTP module installed and my code is working my code is as follows : #!usr/bin/perl use Net::FTP; $ftp=Net::FTP->new("192.168.255.xxx") or dir "Cannot be connected"; $ftp->login("",""); $ftp->get("filename"); this is for file transfer through FT

Help perl

2003-06-29 Thread vemulakonda uday bhaskar
hi all thanks for the reply. i got the Net::FTP module installed and my code is working my code is as follows : #!usr/bin/perl use Net::FTP; $ftp=Net::FTP->new("192.168.255.xxx") or dir "Cannot be connected"; $ftp->login("",""); $ftp->get("filename"); this is for file transfer through FT

Moving between directories

2003-06-29 Thread T.S. Ravi Shankar
Hi all : Could anyone tell me how I could move between the directories ( or change the present working directory ) with any perl command ?? I have tried these system '/bin/cd $HOME'; , chdir '$HOME'; , exec 'cd $HOME'; After I execute the perl code, the PWD still remains unchanged. If the a

Help needed

2003-06-29 Thread vemulakonda uday bhaskar
hi all thanks for the reply. i got the Net::FTP module installed and my code is working my code is as follows : #!usr/bin/perl use Net::FTP; $ftp=Net::FTP->new("192.168.255.xxx") or dir "Cannot be connected"; $ftp->login("",""); $ftp->get("filename"); this is for file transfer through

Re: make CPAN::Shell->i; print to a filehandle

2003-06-29 Thread Harry Putnam
Mark G <[EMAIL PROTECTED]> writes: > - Original Message - > From: "Harry Putnam" <[EMAIL PROTECTED]> > To: "Mark G" <[EMAIL PROTECTED]> > Cc: "perl" <[EMAIL PROTECTED]> > Sent: Sunday, June 29, 2003 4:37 PM > Subject: Re: make CPAN::Shell->i; print to a filehandle > > >> Mark G <[EMAIL PR

Re: help needed

2003-06-29 Thread Harry Putnam
"vemulakonda uday bhaskar" <[EMAIL PROTECTED]> writes: > hi aall > > when i search cpan for downloading Net::FTP, i will be viewing > something like this : > > Net::FTP > perl - 5.8.0 > > when i click the "perl - 5.8.0", i go to a page where there is > download option for perl - 5.8.0, but no whe

Re: help needed

2003-06-29 Thread Sumit_Babu
Hello Uday, Net::FTP is a module in libnet distribution. You will have to download and install libnet to get Net::FTP. Check up http://search.cpan.org/author/GBARR/libnet-1.16/ for more info. <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> A "No" uttered from dee

Re: make CPAN::Shell->i; print to a filehandle

2003-06-29 Thread Mark G
- Original Message - From: "Harry Putnam" <[EMAIL PROTECTED]> To: "Mark G" <[EMAIL PROTECTED]> Cc: "perl" <[EMAIL PROTECTED]> Sent: Sunday, June 29, 2003 4:37 PM Subject: Re: make CPAN::Shell->i; print to a filehandle > Mark G <[EMAIL PROTECTED]> writes: > > > Well I just tryed runing

Re: help needed

2003-06-29 Thread Ovid
> Anyone p[lease tell me from where can i download Net::FTP module Hi Uday, Net::FTP is part of libnet which you can download at http://search.cpan.org/author/GBARR/libnet-1.16/. Cheers, Ovid = Hire me! http://users.easystreet.com/ovid/personal/resume.html Ovid

help needed

2003-06-29 Thread vemulakonda uday bhaskar
hi aall when i search cpan for downloading Net::FTP, i will be viewing something like this : Net::FTP perl - 5.8.0 when i click the "perl - 5.8.0", i go to a page where there is download option for perl - 5.8.0, but no where can i see the download option for Net::FTP. Anyone p[lease tell me

Change of mail id

2003-06-29 Thread Vema, Venkata
Can you change my mailid from [EMAIL PROTECTED] to [EMAIL PROTECTED] regards venkat -Original Message- From: Sudarshan Raghavan [mailto:[EMAIL PROTECTED] Sent: Fri 27/06/2003 9:14 PM To: [EMAIL PROTECTED] Cc: Subject: Re: Help : Net::F

Re: make CPAN::Shell->i; print to a filehandle

2003-06-29 Thread Harry Putnam
Steve Grazzini <[EMAIL PROTECTED]> writes: > On Sun, Jun 29, 2003 at 01:37:39PM -0700, Harry Putnam wrote: >> >> From perldoc it appears that something like this should work but it >> doesn't either: >> my ($wtr, $wdr, $err, @item, $pid); >> >> $pid = open2($wtr, $rdr, 'perl -e ', 'use CPAN;',

Re: Pattern matching

2003-06-29 Thread Jeff 'japhy' Pinyan
On Jun 29, Babale said: >I'm trying to print the content of a variable only if it contains three >digits (1 2 3) and blank in between. Can anyone feature out why I don't >get the right result with both expressions? >@clean = split (/ +/, $clean); > $arrlength = @clean; > $cleanprint = join(" ",

Re: Regex or Looping problem ?

2003-06-29 Thread Steve Grazzini
On Mon, Jun 30, 2003 at 06:51:50AM +0800, LI NGOK LAM wrote: [ Reformatted a bit ] > FILE: > for my $file (@filelist) { >local $_ = $file; >chomp; >s/^$root//; >for my $filter (@FFW, @FFO) { >next FILE if /$filter/i; >} >push @ret, $file; > } > > The problem is i

RE: Regex or Looping problem ?

2003-06-29 Thread Gupta, Sharad
My first guess is that '.' being a metacharacter u would need to escape it somehow. something like this: foreach my $filter_key(@FFW) { $filter_key = quotemeta($filter_key); } -Sharad -Original Message- From: LI NGOK LAM [mailto:[EMAIL PROTECTED] Sent: Sunday, June

Regex or Looping problem ?

2003-06-29 Thread LI NGOK LAM
foreach my $result(@filelist) # a script snipped was given a file list { chomp ($result); my $com_result = $result; $com_result =~ s/^$root//; # $root was a defined var, where using to target the below filter focus # on the rest of parameter besides from the common

Re: make CPAN::Shell->i; print to a filehandle

2003-06-29 Thread Steve Grazzini
On Sun, Jun 29, 2003 at 01:37:39PM -0700, Harry Putnam wrote: > > From perldoc it appears that something like this should work but it > doesn't either: > my ($wtr, $wdr, $err, @item, $pid); > > $pid = open2($wtr, $rdr, 'perl -e ', 'use CPAN;', 'CPAN::Shell->i;'); This is the equivalent of:

Re: make CPAN::Shell->i; print to a filehandle

2003-06-29 Thread Harry Putnam
Mark G <[EMAIL PROTECTED]> writes: > Well I just tryed runing 'CPAN::Shell->i' from the shell, and it failed to > launch it. Can you run 'CPAN::Shell->i' from your systems default shell ?? > you can try using ppm instead. Ahh I guess it doesn't know about `use CPAN' in the parent script. But t

RE: Perl CGI newbie

2003-06-29 Thread Charles K. Clarkson
Mark Anthony Sioting [mailto:[EMAIL PROTECTED] : : Dear Sirs, : :I am new to cgi and i am using perl with it to study. : What i'm doing now is im making an interactive site : which requests for the name/text then the perl/cgi : script will process it upon submitting the submit : button and t

Re: Hmm....is a hot directory possible?

2003-06-29 Thread Harry Putnam
"Wiggins d'Anconia" <[EMAIL PROTECTED]> writes: > FAM provides something similar and I believe uses hooks in the linux > kernel on that system and other means on other *nixes. There even > exists a Perl module to hook into it (SGI::FAM) good luck getting it > to work though, I have had some proble

Re: make CPAN::Shell->i; print to a filehandle

2003-06-29 Thread Mark G
- Original Message - From: "Harry Putnam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 29, 2003 11:58 AM Subject: Re: make CPAN::Shell->i; print to a filehandle > Mark G <[EMAIL PROTECTED]> writes: > > > that would be > > > > $pid = open2($wtr, $rdr, 'CPAN::Shell->i');

Re: refs to hashes

2003-06-29 Thread Mark G
Thanks Kevin, that did it. Mark G. - Original Message - From: "Kevin Pfeiffer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 29, 2003 5:45 AM Subject: Re: refs to hashes > In article <[EMAIL PROTECTED]>, Mark G wrote: > > > Hi All, > > > > I need to read in some data a

Re: make CPAN::Shell->i; print to a filehandle

2003-06-29 Thread Harry Putnam
Mark G <[EMAIL PROTECTED]> writes: > that would be > > $pid = open2($wtr, $rdr, 'CPAN::Shell->i'); > > foreach( @module ){ > print $wtr "$_\n"; > print "shell output: $_\n" while <$rdr>; > } Still not able to get this to fly. Probably something wrong here: cat IPC.pl #!/usr/local/bin/pe

Perl CGI newbie

2003-06-29 Thread Mark Anthony Sioting
Dear Sirs, I am new to cgi and i am using perl with it to study. What i'm doing now is im making an interactive site which requests for the name/text then the perl/cgi script will process it upon submitting the submit button and the output will be displayed via html. My problem is that i can

Pattern matching

2003-06-29 Thread Babale
I'm trying to print the content of a variable only if it contains three digits (1 2 3) and blank in between. Can anyone feature out why I don't get the right result with both expressions? @clean = split (/ +/, $clean); $arrlength = @clean; $cleanprint = join(" ", @clean);

FW: Converting/executing a PERL script in binaries

2003-06-29 Thread Leaw, Chern Jian
Hi My apologies for resending this e-mail so many times. I noticed that some of the attachements could not be viewed. Attached are the files containing the wrapper C code and also its output. My apologies for the confusion caused. The warning message which puzzles me most is "The flags you gave

Converting/executing a PERL script in binaries

2003-06-29 Thread Leaw, Chern Jian
HI, I was wondering anyone in this forum does have any ideas(thus far) on this problem (see attached e-mail below) which I'm trying to solve? Any help is indeed appreciated. NOTE: I'm not using "use strict" yet as I'd like to get to firstly get a working model before before enforcing such good P

Re: refs to hashes

2003-06-29 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Mark G wrote: > Hi All, > > I need to read in some data and put it into a data structure ex: > > knife #product name > 3 #quantity > 1 #price > > I would like to hold in as a hash referancing other hashes ex: > $ref=read_data(); > > > > s

Re: need help

2003-06-29 Thread david
"Anthony" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm really struggling with my scripts for the moment. > What I have is a config file, for the moment a config.pl > which i'm trying to change to config.ini using Config::IniFiles module. > But here is the header of my

refs to hashes

2003-06-29 Thread Mark G
Hi All, I need to read in some data and put it into a data structure ex: knife #product name 3 #quantity 1 #price I would like to hold in as a hash referancing other hashes ex: $ref=read_data(); sub read_data{ open $RD,"< value.dat" || print "could not process request\n"