Re: What is best way for learn programming?

2024-08-04 Thread karl
1n 1 aC3 Capacitor ipc7351b_2012Ar.fp 10n1 3C2 etc. The output is sorted by device, footprint and lastly by value. And I'm using the program: https://aspodata.se/git/openhw/bin/GnetBom2.pl to make it happen. /// Please don't cc me, I'

Re: What is best way for learn programming?

2024-07-31 Thread karl
said, an urgent need for a problem to be solved might be a good way, but the problem might be too hard for a beginner and your knowledge in the choosen language might be spotty after you finished the case. I learned programming languages from books and a few courses and applying that to various

Re: Can use Perl and C in a program?

2024-07-27 Thread karl
), /* 29 */ INTSTR(SIGPWR), /* 30 */ INTSTR(SIGSYS), /* 31 */ }; $ 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: algorithms

2024-06-28 Thread karl
William Torrez Corea: > What is the difference between computer algorithms, pseudocode and source > code? I think this explains that: https://en.wikipedia.org/wiki/Algorithm https://en.wikipedia.org/wiki/Pseudo_code https://en.wikipedia.org/wiki/Source_code Regards, /Karl Hammar

Re: Easiest Way in Perl to check Whether a Disk is Mounted

2024-06-05 Thread karl
irectories\n"; } $ ./chk_mount.pl / /usr 2306, 2308: different filesystem $ ./chk_mount.pl /usr/bin /usr 2308, 2308: same filesystem $ 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: 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: 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: 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-23 Thread karl
)'ize the EXPR as in if (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK in contrast to 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-22 Thread karl
2 'a' characters... No, it just looks at the first 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: regex

2024-01-22 Thread karl
;, and "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: Bash vs Perl

2023-07-14 Thread karl
`cp `; >- mv : Move 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/

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 Cook

Re: regular expression

2011-04-28 Thread Karl Kaufman
- Original Message - From: "Irfan Sayed" To: "John W. Krahn" ; "Perl Beginners" 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 as it is but unfortunately that does not work Well

Re: Real Beginner

2011-04-21 Thread Karl Kaufman
- Original Message - From: "Tiago Hori" To: 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 you name by telling them the name of

Re: Real Beginner

2011-04-21 Thread Karl Kaufman
- Original Message - From: "Shlomi Fish" To: Cc: "Tiago Hori" 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". Naw, the original post indicates that they want a

Re: Nature of this list

2011-04-21 Thread Karl Kaufman
- Original Message - From: "Rob Dixon" To: "Randal L. Schwartz" Cc: 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. Yes! But you have succumbed to Germanic syntax where as

Re: time format conversion

2011-04-21 Thread Karl Kaufman
- Original Message - From: "Rob Dixon" To: Cc: "shawn wilson" 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 a hash and pass it to dt. Otherwise, use dt:forma

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" To: 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 find the difference in # of hours.

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 not

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 i

Compiling and distributing Perl

2004-10-07 Thread Karl Kaufman
rogate if more info 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>

Perl Build

2004-05-04 Thread Karl
uch advice as your willing to share. Or a source I should be reading. :) Cheers -- Karl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

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

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 Vanelv

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,

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

Trouble with referencing hash entry

2003-02-04 Thread Karl Kaufman
(or within 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 ad

Re: Epoch midnight

2003-01-11 Thread Karl Kaufman
method, though 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 midnig

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; &g

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

Re: Having problems with AppConfig::Getopt module

2002-08-27 Thread Karl Kaufman
.= "=" . pop() if ( $#_ eq 2 ) ;$self->set(@_)}; ### example fix end ### Hope this helps. Karl p.s. Grab the new Getopt::Long module here: http://search.cpan.org/author/JV/Getopt-Long-2.32/ ** p.p.s. The new AppConfig/Getopt::Long-2.32 symptom is that both the key and value are now passed t

Re: Getopt::Long option prefix

2002-08-26 Thread Karl Kaufman
: [EMAIL PROTECTED] Sent: Monday, August 26, 2002 7:03 PM 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]

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

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

2002-08-26 Thread Karl Kaufman
ion and facilitate a fix. (It's my 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 timestam

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 = { 'k

Regular Expressions II

2002-02-19 Thread Kittler, Karl
Okay, I got the string parsing working with one exception. When the 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 =~ m/<[\s]*A[\s]*HREF[\s]*=[\s]*["|'|]*([\D\w\d][^'">\s]*)["

Perl Regular Expressions

2002-02-18 Thread Kittler, Karl
finitions. Thinking my resource could be wrong. I've also tried several things which return errors. I'm also 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

Re: modules

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

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