Strange behavior with POSIX qw(fpathconf)

2010-03-31 Thread Paul Smith
I have a feeling this is not a "beginners" question (I've been hacking in Perl for many years and UNIX systems for far longer) but it seems my choices are this list, or perl5-porters which also doesn't seem right. Isn't there any list where non-beginner questions can be asked? Anyway. I have a Pe

Re: Problem with compiling a script

2004-07-21 Thread Paul Smith
Bingo, James! Sorry for my ignorance, but I am just beginning with Perl. Paul James Edward Gray II wrote: On Jul 21, 2004, at 8:35 AM, Paul Smith wrote: I am trying to run the script below, but I always get the following error: [EMAIL PROTECTED] scripts]$ secondperl Global symbol "$gre

Problem with compiling a script

2004-07-21 Thread Paul Smith
Dear All I am trying to run the script below, but I always get the following error: [EMAIL PROTECTED] scripts]$ secondperl Global symbol "$greeting" requires explicit package name at /home/paulus/scripts/secondperl line 6. Global symbol "$greeting" requires explicit package name at /home/paulus/s

Re: Isolating a word with a certain pattern

2004-07-21 Thread Paul Smith
Prasanna Kothari wrote: Have a look at "\w" Refer: http://www.perldoc.com/perl5.8.4/pod/perlrequick.html I am trying to write a script to identify all words having a certain pattern in a text file. Is there in Perl a direct way of isolating a word with a certain pattern? Or has one to check all c

Isolating a word with a certain pattern

2004-07-21 Thread Paul Smith
Dear All I am trying to write a script to identify all words having a certain pattern in a text file. Is there in Perl a direct way of isolating a word with a certain pattern? Or has one to check all characters, bearing in mind that a word is a string delimited by two spaces? Thanks in advance,

Re: Problem with highlighting a word

2004-07-21 Thread Paul Smith
Paul Kraus wrote: cpan search Term::Ansi I would like to know how to print a line of text to the console with a specific word highlighted in a way such that the foreground color is exchanged with the background colour. Any ideas? Thanks, Paul. That is precisely what I was looking for. Paul -- To

Problem with highlighting a word

2004-07-20 Thread Paul Smith
Dear All I would like to know how to print a line of text to the console with a specific word highlighted in a way such that the foreground color is exchanged with the background colour. Any ideas? Thanks in advance, Paul -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: My first perl script

2004-07-12 Thread Paul Smith
(Please, be patient with my ignorance.) I for one am, don't worry. But I'm *not* patient with suspected laziness. ;-) I'd like to see you post some code, where you show us that you are seriously trying to learn, and where you have at least tried to solve this new problem. Thanks, Gunnar. I understa

My first perl script

2004-07-11 Thread Paul Smith
Dear All I am a beginner with perl. I would like to ask you whether it is difficult to make a perl script doing the following: (1) read a text file; (2) erase the character # placed at the beginning of the line that contains "Zyloric"; (3) replace the original file with the file got after the de