Re: Script to read the contents of a directory

2007-11-26 Thread Gunnar Hjalmarsson
John Jack wrote: I urgently need assistance as this is my first exercise that I'd like to do. I must be missing something here. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Script to read the contents of a directory

2007-11-26 Thread Dr.Ruud
John Jack schreef: > I very new to programming and I'm introduced to perl a couple of > weeks ago. I want to write a perl script to read a content of a > directory and the subdirectories within and print out the path to all > files in this directory and sub-directories. Can someone help me to > do

Re: find external ip address

2007-11-26 Thread Celejar
On Sat, 24 Nov 2007 16:38:21 +0100 "Jenda Krynicky" <[EMAIL PROTECTED]> wrote: > From: doubleHelix <[EMAIL PROTECTED]> > > ok i know how i can find my INERNAL ip address in a script with perl: > > > > use Socket; > > print inet_ntoa(inet_aton("")) ."\n"; > > > > but how would I f

Re: Script to read the contents of a directory

2007-11-26 Thread John W . Krahn
On Monday 26 November 2007 14:53, John Jack wrote: > Hi Hello, > I very new to programming and I'm introduced to perl a couple of > weeks ago. I want to write a perl script to read a content of a > directory and the subdirectories perldoc File::Find > within and print out perldoc -f print > t

Re: error on simple system command

2007-11-26 Thread Jenda Krynicky
To: beginners@perl.org From: lerameur <[EMAIL PROTECTED]> Subject:error on simple system command Date sent: Mon, 26 Nov 2007 13:05:53 -0800 (PST) Organization: http://groups.google.com > Hello, > > I am trying to use thi

Script to read the contents of a directory

2007-11-26 Thread John Jack
Hi I very new to programming and I'm introduced to perl a couple of weeks ago. I want to write a perl script to read a content of a directory and the subdirectories within and print out the path to all files in this directory and sub-directories. Can someone help me to do this, please? I urgently

Re: error on simple system command

2007-11-26 Thread John W . Krahn
On Monday 26 November 2007 13:05, lerameur wrote: > Hello, Hello, > I am trying to use this two line script. The command by itself works, > when I run this script, I get error message: > Use of uninitialized value in concatenation (.) or string at ./ > find_date.pl line 8. > > line 8: my $file_t

Re: perl_eval_pv function crashing when creating Perl subroutine from a char string in CPP program

2007-11-26 Thread Rob Dixon
Borse, Ganesh wrote: Hi, I am trying to create Perl subroutine in my C++ program, source code > of which is given below -- attempt to embed Perl in C++ program. I cannot use the perl script file for this because the expressions to be evaluated are stored in database & are to be loaded at runti

error on simple system command

2007-11-26 Thread lerameur
Hello, I am trying to use this two line script. The command by itself works, when I run this script, I get error message: Use of uninitialized value in concatenation (.) or string at ./ find_date.pl line 8. line 8: my $file_to_print = system "ls -lrt /test/*log | tail -1 | awk {'print $9'}";

Re: Trouble Installing Carp-Clan 5.9.x

2007-11-26 Thread Gerald Wheeler
Correction, I did get to the end of one branch.. no further prerequisites. However, I got this error at the top of the next branch - Bit::Vector *--- ls Artistic.txt CHANGES.txt GNU_GPL.txt lib MANIFEST t Vector.pm BitVector.c CREDITS.txt GNU_LGPL.txt Makefile

Re: Trouble Installing Carp-Clan 5.9.x

2007-11-26 Thread Gerald Wheeler
It appears that there is no end to the prerequisites for any given module.. Are they all really necessary for a build?? test??? Thanks J. >>> "Tom Phoenix" <[EMAIL PROTECTED]> 11/26/2007 2:03 PM >>> On 11/26/07, Gerald Wheeler <[EMAIL PROTECTED]> wrote: > t/10basic..Can't locate Test/Exce

Re: Trouble Installing Carp-Clan 5.9.x

2007-11-26 Thread Tom Phoenix
On 11/26/07, Gerald Wheeler <[EMAIL PROTECTED]> wrote: > t/10basic..Can't locate Test/Exception.pm in @INC (@INC It looks as if the test failed when it couldn't find a module named Test::Exception. Is that module installed on your system? It may be needed for the tests, even if it's not l

Trouble Installing Carp-Clan 5.9.x

2007-11-26 Thread Gerald Wheeler
Trying to install Carp-Clan (prerequisite to Date Module) Downloaded file from CPAN unzipped file cd to directory Carp-Clan-5.9 perl Makefile.PL make /usr/ccs/bin/make test (This failes with the following error(s): Anybody know what I'm doing wrong.. # /usr/ccs/bin/make test PERL_DL_NONLAZY=1

Re: socket client, can't print w/o newline

2007-11-26 Thread Tom Phoenix
On 11/26/07, Ryan Moszynski <[EMAIL PROTECTED]> wrote: > here is the client being run, i am unsuccessfully trying to print > "input>" at the beginning of the 10 and 13 lines, which were user > input: > $handle->autoflush(1); # so output gets there right away That's the right ide

socket client, can't print w/o newline

2007-11-26 Thread Ryan Moszynski
first off, i apologize if i'm not describing this as succinctly as possible. i'm working on some client/server stuff using sockets, and i grabbed some code from the net that i don't totally understand. i'm passing packed messages back and forth over a socket from the client/server. Right now i h

Re: Need help with date-time and output

2007-11-26 Thread Gerald Wheeler
One additional note: The input data, column one has values 1 to 365(6) Thanks J. >>> "Gerald Wheeler" <[EMAIL PROTECTED]> 11/26/2007 9:40 AM >>> I am getting and error: Day '32" out of range 1..31 at ... line 35 for this line: my ( $d, $m, $y ) = ( localtime timelocal 0, 0, 12, $_, 0, $dyr )

Re: Need help with date-time and output

2007-11-26 Thread Gerald Wheeler
I am getting and error: Day '32" out of range 1..31 at ... line 35 for this line: my ( $d, $m, $y ) = ( localtime timelocal 0, 0, 12, $_, 0, $dyr )[ 3, 4, 5 ]; and I don't quite know why.. The value for "$_" should be reset to 1 after Jan 31st.. Output is created through only January 31 Thank

Re: Help with transliteration

2007-11-26 Thread [EMAIL PROTECTED]
On Nov 26, 9:43 am, [EMAIL PROTECTED] (Ivan Bogdanov) wrote: > Hi, > > I have some problems with transliteration from Cyrillic text into > Latin. > I my mind, i have two ways to solve the problem: > 1) using a tr/// operator, but it not the best way i think, because in > Russian it might be one sym

Re: double-bytes characters

2007-11-26 Thread [EMAIL PROTECTED]
On Nov 26, 10:41 am, [EMAIL PROTECTED] (Lists User) wrote: > I'm not so familiar with handling double-bytes characters. > I have a string like this (from an email subject): > > =?gb2312?B?u7bTrdeisuE=?= > > how to create this string? and how to decode it? MIME::Words (BTW this is FAQ: "How do I d

double-bytes characters

2007-11-26 Thread lists user
I'm not so familiar with handling double-bytes characters. I have a string like this (from an email subject): =?gb2312?B?u7bTrdeisuE=?= how to create this string? and how to decode it? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http:

Help with transliteration

2007-11-26 Thread Ivan Bogdanov
Hi, I have some problems with transliteration from Cyrillic text into Latin. I my mind, i have two ways to solve the problem: 1) using a tr/// operator, but it not the best way i think, because in Russian it might be one symbol and in transit it would be two symbols. 2) using two arrays, something