Re: Can use Perl and C in a program?

2024-07-27 Thread karl
William Torrez Corea: > How can I implement these two languages of programming in a program? ... If you use `cmd`, system() etc. in perl, you are in fact calling another program that might be written in some other language. The same is true, using fork() exec() system() etc. in c, you co

Re: Can use Perl and C in a program?

2024-07-26 Thread Jeff Pang via beginners
On 2024-07-27 01:11, William Torrez Corea wrote: How can I implement these two languages of programming in a program? You want to check the following library. https://metacpan.org/dist/Inline-C/view/lib/Inline/C.pod -- regards, Jeff Pang -- To unsubscribe, e-mail: beginners-unsubscr

Can use Perl and C in a program?

2024-07-26 Thread William Torrez Corea
How can I implement these two languages of programming in a program? What part of the program uses Perl and C? Different repositories of Github use many languages of programming in a project but a program only uses a language of programming. -- With kindest regards, William

Re: Fast of program

2023-10-16 Thread Andy Bach
e without seeing the code, you could post the code > to https://perlmonks.org/ to get some good feedback :) > > -L > > --- Original Message --- > On Monday, October 16th, 2023 at 4:41 PM, William Torrez Corea < > willitc9...@gmail.com> wrote: > > How can I make a progr

What define a good program in perl?

2022-08-08 Thread William Torrez Corea
In my recents program the program contain your module, conditional, input, ouput. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄

Re: How to can develop a program

2022-08-05 Thread hw
raw > > Mona > > Lisa's eye when you don't even know which end of a paint brush > > paints. > > > > -- > > With regards, > > Christian Walde > > > > Do you have some roadmap that I can follow?. I receive the basics in > my > class of comput

Re: How to can develop a program

2022-08-05 Thread Mike
I agree.  Roadmap is good.  I even gave him a starting roadmap, but I think he is just looking for the answer.  Which means he is going to be disappointed for sure. Mike On 8/2/22 03:41, Ruprecht Helms (privat) wrote: for bigger developing-project the best thing is a roadmap, because

Re: How to can develop a program

2022-08-03 Thread Philip Parzygnat
gt;> > > be able to search for all the names listed in a text file and be >> > > able to print out which file contains which name. And in some >> > > cases the name will not be in any of the files? Is that the goal? >> > > >> > > Defi

Re: How to can develop a program

2022-08-03 Thread Ruprecht Helms (privat)
First you need the roadmap of what you want to do. The other is to read one or both of the mentioned book below. Or book about beginning perl from the Oreily-Distributor. Maybe the book "Effective Perl Programming" from Joseph N. Hall can be an additional option. As mentioned in another mail

Re: How to can develop a program

2022-08-02 Thread William Torrez Corea
? > > > > > > > > for bigger developing-project the best thing is a roadmap, because you > > have to plan the steps > > what the thing should do. > > > > Start with a sheet of paper and a pencil and after that you can decide > >

Re: How to can develop a program

2022-08-02 Thread Ruprecht Helms (privat)
Hi everybody, Am 02.08.22 um 11:16 schrieb Christian Walde: On Tue, 02 Aug 2022 10:41:36 +0200, Ruprecht Helms (privat) wrote: Am 02.08.22 um 10:07 schrieb Christian Walde: What you're describing is how to make a roadmap for the implementation of a specific program. William asked about

Re: How to can develop a program

2022-08-02 Thread Christian Walde
o plan the steps what the thing should do. Start with a sheet of paper and a pencil and after that you can decide what programminglanguage to use and which module you want to start first. What you're describing is how to make a roadmap for the implementation of a specific program. William asked

Re: How to can develop a program

2022-08-02 Thread Ruprecht Helms (privat)
for bigger developing-project the best thing is a roadmap, because you have to plan the steps what the thing should do. Start with a sheet of paper and a pencil and after that you can decide what programminglanguage to use and which module you want to start first. Regards, Ruprecht

Re: How to can develop a program

2022-08-02 Thread Christian Walde
On Mon, 01 Aug 2022 22:50:21 +0200, William Torrez Corea wrote: On Mon, Aug 1, 2022 at 8:16 AM Christian Walde wrote: On Sat, 23 Jul 2022 21:03:18 +0200, William Torrez Corea < willitc9...@gmail.com> wrote: My goal: I want to create you should start [...] reading Modern Perl and Ovid's

Re: How to can develop a program

2022-08-01 Thread Shlomi Fish
a > > Lisa's eye when you don't even know which end of a paint brush paints. > > > > -- > > With regards, > > Christian Walde > > > > Do you have some roadmap that I can follow?. I receive the basics in my > class of computation (control structure, data structu

Re: How to can develop a program

2022-08-01 Thread William Torrez Corea
roadmap that I can follow?. I receive the basics in my class of computation (control structure, data structure, algorithms, syntax, tools). I certainly have experience with C but never I make a long program in Perl. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄

Re: How to can develop a program

2022-08-01 Thread Christian Walde
On Sat, 23 Jul 2022 21:03:18 +0200, William Torrez Corea wrote: My goal: I want to create Being that you barely know anything about Perl, you should start with learning how Perl works by reading Modern Perl and Ovid's Beginning Perl. Right now you're doing the moral equivalent of asking

Re: How to can develop a program

2022-08-01 Thread Ruprecht Helms (privat)
Hi, I know eclipse as a developingtool that is normaly used for Java-development. But this tool also have plugins for developing in PHP, for Android-Programming and maybe for development in perl or in python. Regards, Ruprecht Am 01.08.22 um 13:23 schrieb hw: I have installed eclipse on my

Re: How to can develop a program

2022-08-01 Thread hw
> > > Being a novice, you have to realize there are certain > > > > limitations > > > > to > > > > things.  In other words, Perl maybe can't do EVERYTHING you > > > > want it > > > > to. > > > > > > > > > &g

Re: How to can develop a program

2022-07-31 Thread William Torrez Corea
t; > > things. In other words, Perl maybe can't do EVERYTHING you want it > > > to. > > > > > > > Very clear, so, would I use another language of programming to make > > the > > rest of the program?. > > > > How do you intend to make any progr

Re: How to can develop a program

2022-07-31 Thread hw
gt; > to. > > > > Very clear, so, would I use another language of programming to make > the > rest of the program?. > How do you intend to make any program at all without any tools, as you said you wanted to? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org Fo

Re: How to can develop a program

2022-07-31 Thread William Torrez Corea
On Sun, Jul 31, 2022 at 5:57 PM Marco Shaw wrote: > Being a novice, you have to realize there are certain limitations to > things. In other words, Perl maybe can't do EVERYTHING you want it to. > Very clear, so, would I use another language of programming to make the rest of th

Re: How to can develop a program

2022-07-31 Thread hw
ttps://learn.perl.org/ Always use the language most suited to the task. If you want something to work on, you could make a program that conveniently migrates emails from an old IMAP account into another one without messing things up. The hard part will be designing it, and the programming w

Re: How to can develop a program

2022-07-31 Thread Marco Shaw
I didn't try to read and fully absorb what you've been saying. I see mention of PDFs... So if you're trying to work with PDF files, the first thing you can do is Google "Perl PDF extract information". If that comes up empty, or points you to external tools like an external module or command to

Re: How to can develop a program

2022-07-31 Thread William Torrez Corea
Where can I start? I am Script kiddie, I have zero knowledge about Perl. I need a stimulus. For example: I am executing perl examples. But the project i don't know how to start. https://learn.perl.org/

Re: How to can develop a program

2022-07-30 Thread hw
; be able to search for all the names listed in a text file and > > > > be > > > > able to print out which file contains which name.  And in some > > > > cases the name will not be in any of the files?  Is that the > > > > goal? > > > >

Re: How to can develop a program

2022-07-29 Thread William Torrez Corea
> > > > > > Define your goal and we will help you. > > > > > > > > > The file below is a bit old, but maybe it works for your > > > PDF files. I have not tested it on your url. I gather > > > you don't have HTML tables,

Re: How to can develop a program

2022-07-29 Thread hw
will not be in any of the files?  Is that the goal? > > > > Define your goal and we will help you. > > > > > > The file below is a bit old, but maybe it works for your > > PDF files.  I have not tested it on your url.  I gather > > you don't have HTML ta

Re: How to can develop a program

2022-07-23 Thread William Torrez Corea
will help you. > > > The file below is a bit old, but maybe it works for your > PDF files. I have not tested it on your url. I gather > you don't have HTML tables, so maybe it is not for your case. > > > Mike > > > #!/usr/bin/perl -w > # > # > # This pro

Re: How to can develop a program

2022-07-20 Thread Mike
# # # This program writes the results of the webpage listed in line 17 # to $outfile.  So basically it converts HTML to text. # It works reasonably well with HTML tables. # # #!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; use HTML::FormatText::WithLinks::AndTables; my $page = 'http

Re: How to can develop a program that search in different document in the network the name of a person?

2022-07-20 Thread William Torrez Corea
The url of the page: https://www.pgr.gob.ni/PDF/2021/GACETA/GACETA_17_08_2021.pdf On 7/20/22, William Torrez Corea wrote: > Exist a page where you put info about the person but if you want to search > a name you must search this manually. So, I want to automate this process > with perl. > -- >

How to can develop a program that search in different document in the network the name of a person?

2022-07-20 Thread William Torrez Corea
Exist a page where you put info about the person but if you want to search a name you must search this manually. So, I want to automate this process with perl. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄

Re: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-20 Thread lee
Shekar writes: > Depending upon how vendor implemented SNMP part for their device, other > than standard OID's such as sysUptime , will have custom MIB files. > You should try visiting their website for downloading required MIB file for > your switch. > Then import them

Re: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-20 Thread lee
mailing lists writes: > are you sure? > > # emerge -s expect >     > [ Results for search key : expect ] > Searching... > > [...] > *  dev-perl/Expect >  

Re: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-19 Thread Shekar
Depending upon how vendor implemented SNMP part for their device, other than standard OID's such as sysUptime , will have custom MIB files. You should try visiting their website for downloading required MIB file for your switch. Then import them with -m or put it under snmp path to get its OID's

Re: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-19 Thread lee
lee writes: > Shekar writes: > >> +1 for SNMP, or if Net::SSH::Perl didn't help, can you try expect module? > > Thanks! 'Expect' isn't available as Gentoo package, so I skipped it. > > SNMP is probably better, so I need to learn about that first and

Re: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-19 Thread lee
Shekar writes: > +1 for SNMP, or if Net::SSH::Perl didn't help, can you try expect module? Thanks! 'Expect' isn't available as Gentoo package, so I skipped it. SNMP is probably better, so I need to learn about that first and see if I can use it. I guess it's time to

Re: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-19 Thread Shekar
+1 for SNMP, or if Net::SSH::Perl didn't help, can you try expect module? Cheers, Shekar On Wed, Apr 19, 2017 at 1:38 PM, lee wrote: > Duncan Ferguson writes: > > > If the temperature is available on your switch, can you not enable SNMP > on it

Re: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-19 Thread lee
Duncan Ferguson writes: > If the temperature is available on your switch, can you not enable SNMP on it > and read the specific OID to get the info? Far far easier than trying to > keep an ssh connection open, I think. > > I guess this does depend on the switch

Re: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-19 Thread lee
SSC_perl writes: >> On Apr 18, 2017, at 6:19 PM, lee wrote: >> >> The purpose is to get room temperature readings > > Hey Lee, > > I don’t have a solution for you, but I have an idea that might > help. Have you tried the Misterhouse mailing list?

RE: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-19 Thread Duncan Ferguson
, though. Duncs -Original Message- From: lee [mailto:l...@yagibdah.de] Sent: 19 April 2017 02:20 To: beginners@perl.org Subject: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output? Hi, I'm trying to repeatedly execute

Re: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-18 Thread X Dungeness
:19 PM, lee <l...@yagibdah.de> wrote: > > Hi, > > I'm trying to repeatedly execute a command on a remote machine and > to capture the output with a perl program. > > I have tried Net::OpenSSH and Net::SSH::Perl. Both log in, execute the > command, capture the output

Re: how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-18 Thread SSC_perl
> On Apr 18, 2017, at 6:19 PM, lee wrote: > > The purpose is to get room temperature readings Hey Lee, I don’t have a solution for you, but I have an idea that might help. Have you tried the Misterhouse mailing list? It’s a Perl script that handles sensors like

how to repeatedly execute a command on a remote machine via a shh login from within a perl program capturing the output?

2017-04-18 Thread lee
Hi, I'm trying to repeatedly execute a command on a remote machine and to capture the output with a perl program. I have tried Net::OpenSSH and Net::SSH::Perl. Both log in, execute the command, capture the output --- and then log out. According to the log file of the remote machine, Net

RE: configure a switch via ssh with a perl program

2016-07-13 Thread Taylor, Trac
July 12, 2016 7:33 PM To: beginners@perl.org Subject: Re: configure a switch via ssh with a perl program Shekar <c.shekar1...@gmail.com> writes: > Hi Lee, > > If you can login to your switch via ssh, run required commands on the > switch and exit out, you should be able to s

Re: configure a switch via ssh with a perl program

2016-07-12 Thread lee
Shekar <c.shekar1...@gmail.com> writes: > Hi Lee, > > If you can login to your switch via ssh, run required commands on the > switch and exit out, you should be able to simulate the same via > Net::OpenSSH or Net::SSH::Perl Yes, that's what I was thinking. Only it takes ti

Re: configure a switch via ssh with a perl program

2016-07-04 Thread Shekar
Hi Lee, If you can login to your switch via ssh, run required commands on the switch and exit out, you should be able to simulate the same via Net::OpenSSH or Net::SSH::Perl Cheers, Shekar On Mon, Jul 4, 2016 at 8:18 PM, lee wrote: > Shlomi Fish

Re: configure a switch via ssh with a perl program

2016-07-04 Thread lee
Shlomi Fish writes: > Hi lee, > > On Mon, 04 Jul 2016 04:18:22 +0200 > lee wrote: > >> Hi, >> >> would it be possible to use something like Net::SSH::Perl to >> automatically alter the configuration of a switch into which I can log >> in manually via

Re: configure a switch via ssh with a perl program

2016-07-04 Thread Shlomi Fish
Hi lee, On Mon, 04 Jul 2016 04:18:22 +0200 lee wrote: > Hi, > > would it be possible to use something like Net::SSH::Perl to > automatically alter the configuration of a switch into which I can log > in manually via ssh? [SNIPPED] > Once per hour or so, the connections could

configure a switch via ssh with a perl program

2016-07-03 Thread lee
Hi, would it be possible to use something like Net::SSH::Perl to automatically alter the configuration of a switch into which I can log in manually via ssh? I'm looking for a way to automatically switch a network connection between two others. Since there don't seem to be any switches for this

What's wrong with this program?

2014-08-06 Thread ESChamp
The program begins #!/usr/bin/perl use Tie::File; use File::Copy 'copy'; use File::Spec; my $copy=00-copy.htm; my $recapfile=00recap.txt; my $htmfile=00.htm; my $ct; tie my @bfile, 'Tie::File', $recapfile or die cannot tie recapfile and bfile $!; tie my @hfile, 'Tie::File', $copy

Re: What's wrong with this program?

2014-08-06 Thread Jim Gibson
On Aug 6, 2014, at 10:55 AM, ESChamp wrote: The program begins #!/usr/bin/perl You really should add these two lines: use strict; use warnings; here and correct the mistakes they reveal. use Tie::File; use File::Copy 'copy'; use File::Spec; my $copy=00-copy.htm; my

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-07 Thread Gerhard Jungwirth
Hi On 06/06/2013 06:25 PM, Jim Gibson wrote: The program will keep running, but at some point, if the program is writing bytes to the standard output stream, the buffer for that stream will fill up. At that point, the program will block doing a write until the buffer has been depleted

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread Luca Ferrari
On Wed, Jun 5, 2013 at 1:18 PM, Nemana, Satya snem...@sonusnet.com wrote: Hi I am having a slight difficulty in getting this accomplished. When my perl program keeps running, I sometimes need to pause the screen output and check some things on the output. But, I want my program to still

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread shawn wilson
Ferrari fluca1...@infinito.it wrote: On Wed, Jun 5, 2013 at 1:18 PM, Nemana, Satya snem...@sonusnet.com wrote: Hi I am having a slight difficulty in getting this accomplished. When my perl program keeps running, I sometimes need to pause the screen output and check some things

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread Travis Thornhill
On Jun 5, 2013, at 4:18, Nemana, Satya snem...@sonusnet.com wrote: Hi I am having a slight difficulty in getting this accomplished. When my perl program keeps running, I sometimes need to pause the screen output and check some things on the output. But, I want my program to still keep

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread Jim Gibson
On Jun 6, 2013, at 9:04 AM, Travis Thornhill wrote: On Jun 5, 2013, at 4:18, Nemana, Satya snem...@sonusnet.com wrote: Hi I am having a slight difficulty in getting this accomplished. When my perl program keeps running, I sometimes need to pause the screen output and check some

RE: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread Nemana, Satya
Thanks Travis, Shlomi , Shawn, Luca, and James. The program pauses i.e does not run further when I press Cntrl –S When I press Ctrl-Q again, the program resumes excactly where it was when I hit cntrl-q. It is not a deamon, but a simple automation program and it is single threaded , goes

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread Robert Wohlfarth
On Thu, Jun 6, 2013 at 11:29 AM, Nemana, Satya snem...@sonusnet.com wrote: Thanks Travis, Shlomi , Shawn, Luca, and James. The program pauses i.e does not run further when I press Cntrl –S When I press Ctrl-Q again, the program resumes excactly where it was when I hit cntrl-q

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread shawn wilson
Wohlfarth rbwohlfa...@gmail.com wrote: On Thu, Jun 6, 2013 at 11:29 AM, Nemana, Satya snem...@sonusnet.com wrote: Thanks Travis, Shlomi , Shawn, Luca, and James. The program pauses i.e does not run further when I press Cntrl –S When I press Ctrl-Q again, the program resumes excactly where

how to make perl program run continue when i press control+s to pause screen output

2013-06-05 Thread Nemana, Satya
Hi I am having a slight difficulty in getting this accomplished. When my perl program keeps running, I sometimes need to pause the screen output and check some things on the output. But, I want my program to still keep running while I pause the screen. (using ctrl+s on putty) But the program

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-05 Thread James Alton
...@sonusnet.com wrote: Hi ** ** I am having a slight difficulty in getting this accomplished. When my perl program keeps running, I sometimes need to pause the screen output and check some things on the output. But, I want my program to still keep running while I pause the screen

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-05 Thread James Alton
Alternatively, output to a file, don't sleep (unless you really need to?), then tail that file in another console. (This would be for if you wanted to see different parts of the printed output while the program is still going.) James On Wed, Jun 5, 2013 at 5:18 AM, Nemana, Satya snem

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-05 Thread Shlomi Fish
Hi Satya, On Wed, 5 Jun 2013 11:18:14 + Nemana, Satya snem...@sonusnet.com wrote: Hi I am having a slight difficulty in getting this accomplished. When my perl program keeps running, I sometimes need to pause the screen output and check some things on the output. But, I want my program

Re: Problem of general running of simple perl program.

2012-11-05 Thread John Delacour
On 05/11/2012 03:01, hong zeng wrote: When I run the send_email example on the website, I got some warning like this...I am really a beginner so I don't know where to find the answer so I post here. Thank you guys. ece% perl ./perl_test/send_email.pl Can't locate Email/MIME.pm in @INC (@INC

Problem of general running of simple perl program.

2012-11-04 Thread hong zeng
Hi, When I run the send_email example on the website, I got some warning like this...I am really a beginner so I don't know where to find the answer so I post here. Thank you guys. ece% perl ./perl_test/send_email.pl Can't locate Email/MIME.pm in @INC (@INC contains:

Re: Problem of general running of simple perl program.

2012-11-04 Thread Feng He
You have lost the module named as Email::MIME. 于 2012-11-5 11:01, hong zeng 写道: Hi, When I run the send_email example on the website, I got some warning like this...I am really a beginner so I don't know where to find the answer so I post here. Thank you guys. ece% perl

Re: Problem of general running of simple perl program.

2012-11-04 Thread Hal Wigoda
Your script requires perl module Email/MIME.pm, Either variable @INC ( included librarries ) is not properly defined or set or the module is not present on your machine and needs to be loaded from CPAN. On Sun, Nov 4, 2012 at 9:01 PM, hong zeng zenghong...@gmail.com wrote: Hi, When I run the

Re: Problem of general running of simple perl program.

2012-11-04 Thread Feng He
Seems this one: http://search.cpan.org/~rjbs/Email-MIME-1.911/lib/Email/MIME.pm 于 2012-11-5 11:22, hong zeng 写道: Where should I write this module and how? On Sun, Nov 4, 2012 at 10:10 PM, Feng Hefen...@nsbeta.info wrote: You have lost the module named as Email::MIME. -- To unsubscribe,

Re: Problem of general running of simple perl program.

2012-11-04 Thread Hal Wigoda
Download it and put it one of the directories in your @INC . On Sun, Nov 4, 2012 at 9:28 PM, Feng He fen...@nsbeta.info wrote: Seems this one: http://search.cpan.org/~rjbs/Email-MIME-1.911/lib/Email/MIME.pm 于 2012-11-5 11:22, hong zeng 写道: Where should I write this module and how? On

Re: my first useful program...any corrections/suggestions?

2012-11-02 Thread Jim Gibson
On Nov 1, 2012, at 6:00 PM, Thanos Zygouris wrote: @Brandon: I'll stick with the m//, mostly because it reminds me that i can use any delimiter instead of the slashes. I hope to get more experience tho, and get rid of it. Also, i couldn't find any reference that \d in regex is different from

Re: my first useful program...any corrections/suggestions?

2012-11-02 Thread Brandon McCaig
On Fri, Nov 02, 2012 at 03:00:08AM +0200, Thanos Zygouris wrote: Also, i couldn't find any reference that \d in regex is different from [0-9] (or [:digit:]), but i'm interested for more information about it. I wouldn't have found it either if I didn't know to look for it. I guess I have this

Re: my first useful program...any corrections/suggestions?

2012-11-01 Thread Thanos Zygouris
Thank you both for your suggestions. @Shlomi: It seems that i'm completely unable to implement dispatch tables here (but i now know what they are, hope to use them in the near future), so i used the given-when approach...it seemed better than endless if-elsif's. @Brandon: I'll stick with the

my first useful program...any corrections/suggestions?

2012-10-31 Thread Thanos Zygouris
I made a small program to display a X::Osd bar displaying my volume percentage (on GNU/Linux box). It works, but I'd like to have any suggestions or corrections about it (i'm not confident about my skills i suppose). So, here is how it works: 1) Have a named pipe defined at $OSD_VOLUME

Re: my first useful program...any corrections/suggestions?

2012-10-31 Thread Shlomi Fish
Hi Thanos, some comments about your code. On Wed, 31 Oct 2012 13:27:05 +0200 Thanos Zygouris athanasios.zygou...@gmail.com wrote: I made a small program to display a X::Osd bar displaying my volume percentage (on GNU/Linux box). It works, but I'd like to have any suggestions or corrections

Re: my first useful program...any corrections/suggestions?

2012-10-31 Thread Brandon McCaig
of deleting an existing file. I would consider it user error for an existing file to not be a fifo, which means that your program should just report it and refuse to function. It is then possible for the user to decide what to do. unless(-p $fifo_file) { if(-e $fifo_file) { die Fatal

Re: My first perl program after 6 years (need help on Win32::OLE ADSI script)

2012-09-07 Thread Michiel Beijen
Hi Andrew, On Thu, Sep 6, 2012 at 5:23 AM, andrew sison andrew.sison...@gmail.com wrote: I've done some reading and learned that in order to automate that particular task using perl, I would have to use either Win32::OLE or Net::LDAP. So I decided to use to former. Actually, I would strongly

Re: My first perl program after 6 years (need help on Win32::OLE ADSI script)

2012-09-06 Thread Shlomi Fish
using perl, I would have to use either Win32::OLE or Net::LDAP. So I decided to use to former. Now I am confronted with this simple problem which one would consider the biggest hurdle that a beginner programmer has to overcome for the first time. This is like the hello world program for me. If I

My first perl program after 6 years (need help on Win32::OLE ADSI script)

2012-09-05 Thread andrew sison
that a beginner programmer has to overcome for the first time. This is like the hello world program for me. If I can get past this, I know I can do anything. The problem with the code below is that it is not able to retrieve the object if I type in my DN. If it's just the container OUs, then it seems

suggestions for perl program to make excel graph out from top output

2012-07-20 Thread Nemana, Satya
Gurus, I want to write a perl program that captures top output in linux and makes nice graphs out of them(Microsoft excel) Are there ready to use modules for this which will help in writing the program? Any suggestions for inspirations? Search in cpan for top is resulting in a lot of results

Re: suggestions for perl program to make excel graph out from top output

2012-07-20 Thread Shlomi Fish
Hi Satya, On Fri, 20 Jul 2012 13:33:04 + Nemana, Satya snem...@sonusnet.com wrote: Gurus, I want to write a perl program that captures top output in linux and makes nice graphs out of them(Microsoft excel) Are there ready to use modules for this which will help in writing

RE: suggestions for perl program to make excel graph out from top output

2012-07-20 Thread mike lively
Date: Fri, 20 Jul 2012 17:19:06 +0300 From: shlo...@shlomifish.org To: snem...@sonusnet.com CC: beginners@perl.org Subject: Re: suggestions for perl program to make excel graph out from top output Hi Satya, On Fri, 20 Jul 2012 13:33:04 + Nemana, Satya snem...@sonusnet.com

Re: files checksum perl program help

2012-01-05 Thread ram ram
checksum perl program help On 1/4/12 Wed  Jan 4, 2012  3:38 PM, ram ram ram_p...@yahoo.com scribbled: Hi ,    Wish you a Very Happy and Wonderful New Year. I am a beginner in perl programming. I request your help to write a perl program that takes 2 different directories on 2 different

Re: files checksum perl program help

2012-01-05 Thread Jim Gibson
are the same, you can compare them. For example, the Unix cmp program will do that. The File::Compare module provides a Perl equivalent. Checksums will be useful if generating and saving them allow you to avoid comparing long files more than once. But if you are not in control of the library files

Re: files checksum perl program help

2012-01-05 Thread ram ram
, 2012 11:34 AM Subject: Re: files checksum perl program help On 1/5/12 Thu  Jan 5, 2012  11:01 AM, ram ram ram_p...@yahoo.com scribbled: Thank You very much Jim for your immediate response. my requirement is that I have standard installation on server1 which is a master copy. I know

files checksum perl program help

2012-01-04 Thread ram ram
Hi ,    Wish you a Very Happy and Wonderful New Year. I am a beginner in perl programming. I request your help to write a perl program that takes 2 different directories on 2 different servers and find all the files in these 2 directories have the same files with same checksums. can anybody

Re: files checksum perl program help

2012-01-04 Thread Jim Gibson
On 1/4/12 Wed Jan 4, 2012 3:38 PM, ram ram ram_p...@yahoo.com scribbled: Hi ,    Wish you a Very Happy and Wonderful New Year. I am a beginner in perl programming. I request your help to write a perl program that takes 2 different directories on 2 different servers and find all the files

Re: timings of perl subroutine with a program

2011-11-07 Thread a b
Thanks a ton!! Hats off to you for encouragement On Fri, Nov 4, 2011 at 5:05 PM, Shlomi Fish shlo...@shlomifish.org wrote: Hi a b, On Fri, 4 Nov 2011 15:18:00 +0530 a b testa...@gmail.com wrote: apologize!! Can you help me to understand how async I/O can help me What's wrong with

Re: timings of perl subroutine with a program

2011-11-04 Thread a b
apologize!! Can you help me to understand how async I/O can help me Regards a b On Thu, Nov 3, 2011 at 9:06 PM, Shlomi Fish shlo...@shlomifish.org wrote: Hello a b, please reply to the list as I specifically request in my signature. (Wretched gmail.com.) I'm CCing the list. On Thu, 3

Re: timings of perl subroutine with a program

2011-11-04 Thread Shlomi Fish
Hi a b, On Fri, 4 Nov 2011 15:18:00 +0530 a b testa...@gmail.com wrote: apologize!! Can you help me to understand how async I/O can help me What's wrong with the resources in the URL I pointed you to? There's also http://en.wikipedia.org/wiki/Asynchronous_I/O which may be of interest. The

Re: timings of perl subroutine with a program

2011-11-03 Thread Shlomi Fish
On Thu, 3 Nov 2011 06:49:36 +0100 timothy adigun 2teezp...@gmail.com wrote: Hi a b, a b testa...@gmail.com wrote: Hi all, i need to track down how much time each function is taking and anlyze if threads can help do we have any such function?? **You can use ** use Benchmark

Re: timings of perl subroutine with a program

2011-11-03 Thread Shlomi Fish
Hello a b, please reply to the list as I specifically request in my signature. (Wretched gmail.com.) I'm CCing the list. On Thu, 3 Nov 2011 16:15:11 +0530 a b testa...@gmail.com wrote: Thanks Shlomi!! I am not sure about async I/O? any pointers about this one. It is new to me so far

timings of perl subroutine with a program

2011-11-02 Thread a b
Hi all, i need to track down how much time each function is taking and anlyze if threads can help do we have any such function??

Re: timings of perl subroutine with a program

2011-11-02 Thread timothy adigun
Hi a b, a b testa...@gmail.com wrote: Hi all, i need to track down how much time each function is taking and anlyze if threads can help do we have any such function?? **You can use ** use Benchmark qw(:all) **. From your CLI you can do: perldoc benchmark, or if you not like reading from

need some help with writing a basic program

2011-09-12 Thread Ryan Munson
. The objective is to Write a program that asks for a decimal less than 256 and converts it to binary. Any help would be greatly appreciated! #!/usr/bin/perl # dec-less-than-exercise.pl use strict; use warnings; print Decimal Less Than 1.0\n\nPlease enter a decimal number less than 256: ; chomp(my

Re: need some help with writing a basic program

2011-09-12 Thread Ryan Munson
I could, but the book also mentions a hint to using the bitwise operator. Loops are still to come. =) Ryan From: Hal Wigoda hal.wig...@gmail.com Date: Mon, 12 Sep 2011 14:07:18 -0500 To: Ryan Munson ryan.barrac...@elboardo.com Subject: Re: need some help with writing a basic program Use

Re: need some help with writing a basic program

2011-09-12 Thread Brandon McCaig
is to Write a program that asks for a decimal less than 256 and converts it to binary. *snip* chomp(my $dec = STDIN); $dec = $dec 256; I doubt that this is doing what you intended it to do. The operator is a comparison operator (numeric less-than operator) and will return a boolean result indicating

Re: need some help with writing a basic program

2011-09-12 Thread Ryan Munson
The full exercise states: Write a program that asks for a decimal number less than 256 and converts it to binary. (Hint: You may want to use the bitwise and operator 8 times.) Since 256 is 2^8, I am assuming using a computation of 2**8 is involved. Ryan On 9/12/11 3:29 PM, Brandon McCaig

Re: need some help with writing a basic program

2011-09-12 Thread Brandon McCaig
On Mon, Sep 12, 2011 at 3:47 PM, Ryan Munson ryan.barrac...@elboardo.com wrote: it to binary. (Hint: You may want to use the bitwise and operator 8 times.) Since 256 is 2^8, I am assuming using a computation of 2**8 is involved. The answer is in the hint. What does the bitwise-and operator

Re: need some help with writing a basic program

2011-09-12 Thread Jim Gibson
On 9/12/11 Mon Sep 12, 2011 12:47 PM, Ryan Munson ryan.barrac...@elboardo.com scribbled: The full exercise states: Write a program that asks for a decimal number less than 256 and converts it to binary. (Hint: You may want to use the bitwise and operator 8 times.) Since 256 is 2^8, I am

  1   2   3   4   5   6   7   8   9   10   >