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
-- 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
. The installation
prossess will automatic fix this.
Karl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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/
/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/
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/
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/
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/
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/
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
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
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
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
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
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
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
-
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
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
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
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
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
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
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
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
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
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 =~
- 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
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
- 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
- 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.
- 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.
- 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
- 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
~/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
34 matches
Mail list logo