number of files in a dir

2004-04-23 Thread Karl
Hi all. Is there a module or function which will return the number of files in a dir or at least have similar results as ls -1 | wc -l Tks -- Karl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org

Re: Do's anyone know of a perl script which prints only sentenceline s containing either a period . question? (fwd)

2001-10-04 Thread karl
-- Forwarded message -- PST! Just a little correction... Sorry.. Karl Hello, JA Sorry my very week english language. I have try to find a solution for your problem. But I'm a beginner to. At least. This work on my Red Hat Linux 7.1 OS If you try this:-) Copy and past

Re: modules

2001-10-05 Thread karl
. The installation prossess will automatic fix this. Karl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Bash vs Perl

2023-07-14 Thread karl
ove or rename a file or directory. As in c, use rename(), man perlfunc > The program must update the package manager Ask on one of the debian mailing lists. Regards, /Karl Hammar -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

tty functions

2023-07-02 Thread karl
/sainsmart-genmitsu-cnc-router-3018-pro-diy-kit Regards, /Karl Hammar -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: regex

2024-01-23 Thread karl
o for the modifier you don't need to: STATEMENT if EXPR; I prefer to always to use ()' around the expression, since it makes it easier to convert between the two forms. Regards, /Karl Hammar -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: regex

2024-01-24 Thread karl
Mike: > I stand properly scolded. I didn't want to scold anyone, it seems I expressed myself wrong. Sorry for that. Regards, /Karl Hammar -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: regex

2024-01-22 Thread karl
ot;aa" and is ignorant about what comes before and after (basically). That "aa" is followed by a "a" isn't something the expression prohibits. If you want that try /^a{,2}$/ instead. Regards, /Karl Hammar -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: regex

2024-01-22 Thread karl
rst two a's and finds a match, there is still one "a" left, but who cares, you have already got your match. Regards, /Karl Hammar -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: module dependency

2024-05-16 Thread karl
Netwinds: > How do I know which other modules are required by the perl module > (like Net::SMTPS) I am using? You mean like go to cpan: https://metacpan.org/pod/Net::SMTPS and looking at the left column under dependencies ? Regards, /Karl Hammar -- To unsubscribe, e-mail: beginners-un

Re: project

2024-05-18 Thread karl
William: > What is the need to develop a project in Perl? Perl and some knowledge of what the project is about. You can, at your own convenience or requirement, add some version control system, some editor or progremming environment, etc. Regards, /Karl Hammar -- To unsubscribe, e-m

Re: Epoch midnight

2003-01-11 Thread Karl Kaufman
another timelocal() call: $todayEnd_epoch = timelocal( 0, 0, 24, $day, $month, $year ); Regs, Karl - Original Message - From: Todd W [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 10, 2003 8:40 PM Subject: Re: Epoch midnight Deborah Scott wrote: I thought I

Trouble with referencing hash entry

2003-02-04 Thread Karl Kaufman
a foreach loop using the internal variable): print $device{server1} . x\n;# Works fine However, I CANNOT reference them using a separate variable: print $device{$_} . x\n;# Is failing miserably!! What's my defect?!? Thanks in advance...! Karl K. EXAMPLE OUTPUT

Re: Trouble with referencing hash entry

2003-02-04 Thread Karl Kaufman
Cupie doll for Mr. Pinyan... thanks! Both 'length' and (/^\w+$/) indicate an unprintable character in $_.Now to find out what it is and where it's coming from. (*argh*) Thanks! - Original Message - From: Jeff 'japhy' Pinyan [EMAIL PROTECTED] To: Karl Kaufman [EMAIL PROTECTED] Cc

How to attempt login to Windows server from Unix?

2003-02-24 Thread Karl Kaufman
Hi, I'm trying to automate creation of login failure Security Log entries on NT -- but want/need to be able to do so from a Unix server. Does anyone have suggestions on how to accomplish this (ideally using Perl)? Thanks in advance. Regards, Karl K. -- To unsubscribe, e-mail: [EMAIL

Compiling and distributing Perl

2004-10-07 Thread Karl Kaufman
is needed. Thanks..! Karl K. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Compiling and distributing Perl

2004-10-07 Thread Karl Kaufman
- From: Jenda Krynicky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 07, 2004 9:10 AM Subject: Re: Compiling and distributing Perl From: Karl Kaufman [EMAIL PROTECTED] Ok, I have a sane compiler toolset installed on my development server, but NOT on several servers on which I

Having problems with AppConfig::Getopt module

2002-08-26 Thread Karl Kaufman
Hello, I'm trying to use the 'AppConfig::Getopt' module to parse my command-line arguments, assigning the passed values to a hash. It's not working. And I need help. For example: # test.pl -pagerdest [EMAIL PROTECTED] Should result in: %pagerdest = { 'karl' = '[EMAIL PROTECTED

MIME::Lite 'Datestamp' problem -- truncating timezone? (UT instead of UTC)

2002-08-26 Thread Karl Kaufman
opinion that the UT timezone on line 1057 of MIME::Lite is a typo/error.) Thanks in advance..! Karl K. Details --- I noticed that timestamps on my emails generated using MIME::Lite were off by 5 hours, so I looked into how MIME::Lite was timestamping the messages. I quickly noticed what appeared

Re: Having problems with AppConfig::Getopt module

2002-08-26 Thread Karl Kaufman
David, You caught my typo in my email -- the braces should have been parens. Unfortunately, that was just a typed-in example, and the original problem remains: AppConfig::Getopt cannot handle hashes passed on the command-line. Regs, Karl K. - Original Message - From: david To: [EMAIL

Re: Getopt::Long option prefix

2002-08-26 Thread Karl Kaufman
Subject: Re: Having problems with AppConfig::Getopt module Karl Kaufman wrote: For example: # test.pl -pagerdest [EMAIL PROTECTED] is the above another typo? should it be: test.pl --pagerdest [EMAIL PROTECTED] you seem to have only one '-' in front of pagerdest? Getopt::Long uses

Re: Mod Installations -- as non root

2002-09-12 Thread Karl Kaufman
And once you've installed the modules, you'll need to either append your personal library to the 'PERL5LIB' environment variable or include the 'use lib' pragma in your program. Karl - Original Message - From: drieux To: begin begin Sent: Thursday, September 12, 2002 6:58 PM

Re: Using map

2002-10-03 Thread Karl Kaufman
I, too, am interested in this syntax. I had to do the same juggling in order to map the values without affecting the original array -- and would prefer cleaner syntax if it's possible. Thx! Karl new_names = map { ($x = $_) =~ s/(jpg|gif)$/html/i; $x } old_names; Is there a more elegant

CPAN auxiliary pages indexing

2007-11-14 Thread Karl Erisman
Hi p.b, What conditions on a CPAN module must hold in order for cpantesters and cpanform to create pages for that dist? My module, App::Smbxfer, is indexed and in the module list. It shows up on most of the CPAN pages (i.e. it is on the other CPAN search pages, ANNOCPAN, RT, CPANTS, ...) but

Perl Regular Expressions

2002-02-18 Thread Kittler, Karl
trying to figure out how to collect both the URL and the link name in one line of code. From what I've read, it looks like it can be done. The initial goal is to create a list, including the link name, of every URL on my site. Thanks, Karl Kittler

Regular Expressions II

2002-02-19 Thread Kittler, Karl
Okay, I got the string parsing working with one exception. When the A HREF... /a tag runs across two or more lines the test fails. Any suggestions? Here's what I'm using for a multiple tag search throughout the string(condensed): while ($line =~

Re: Program close

2004-02-11 Thread Karl Hakmiller
- Original Message - From: Wagner, David --- Senior Programmer Analyst --- WGO [EMAIL PROTECTED] To: Anthony Vanelverdinghe [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 12:41 PM Subject: RE: Program close -Original Message- From: Anthony Vanelverdinghe

Re: time format conversion

2011-04-21 Thread Karl Kaufman
Alternatives to shawn's response (w/o commenting on relative benefits)... - Original Message - From: cc c...@belfordhk.com To: beginners@perl.org Sent: Thursday, April 21, 2011 4:37 AM Subject: time format conversion Hi, I have two strings that shows different times and I want to

Re: time format conversion

2011-04-21 Thread Karl Kaufman
- Original Message - From: Rob Dixon rob.di...@gmx.com To: beginners@perl.org Cc: shawn wilson ag4ve...@gmail.com Sent: Thursday, April 21, 2011 1:14 PM Subject: Re: time format conversion On 21/04/2011 10:52, shawn wilson wrote: If its always in that format, just split and define

Re: Nature of this list

2011-04-21 Thread Karl Kaufman
- Original Message - From: Rob Dixon rob.di...@gmx.com To: Randal L. Schwartz mer...@stonehenge.com Cc: beginners@perl.org Sent: Thursday, April 21, 2011 12:21 PM Subject: Re: Nature of this list On 21/04/2011 17:25, Randal L. Schwartz wrote: People come online to learn Perl.

Re: Real Beginner

2011-04-21 Thread Karl Kaufman
- Original Message - From: Shlomi Fish shlo...@iglu.org.il To: beginners@perl.org Cc: Tiago Hori tiago.h...@gmail.com Sent: Thursday, April 21, 2011 3:01 PM Subject: Re: Real Beginner On Thursday 21 Apr 2011 22:03:27 Tiago Hori wrote: print Hi $name! ; You're missing a \n.

Re: Real Beginner

2011-04-21 Thread Karl Kaufman
- Original Message - From: Tiago Hori tiago.h...@gmail.com To: beginners@perl.org Sent: Thursday, April 21, 2011 2:03 PM Subject: Real Beginner I was trying to do exercise 5 of the 5th edition of learning perl: ... 4. [10] Write a subroutine, named greet, that welcomes the person

Re: regular expression

2011-04-28 Thread Karl Kaufman
- Original Message - From: Irfan Sayed irfan_sayed2...@yahoo.com To: John W. Krahn jwkr...@shaw.ca; Perl Beginners beginners@perl.org Sent: Thursday, April 28, 2011 9:28 AM Subject: Re: regular expression my logic was to just put the space character in place of comma and keep rest

UnixDate export problem

2015-11-06 Thread Karl Hakmiller
~/perlstuff$ perl hopdelta.plx "UxixDate" is not exported by the Date::Manip module Can't continue after import errors at hopdelta.plx line 9. BEGIN failed--compilation aborted at hopdelta.plx line 9. karlh@HAKS13:~/perlstuff$ I received this error trying to run a script taken from the Perl