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
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
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
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
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
⠈⠳⣄
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
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
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
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
?
> >
> >
> >
> > 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
> >
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
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
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
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
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
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
⠈⠳⣄
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
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
> > > 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
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
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
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
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
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
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/
; 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?
> > > >
> > >
> > > 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,
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
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
#
#
# 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
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.
> --
>
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
⠈⠳⣄
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
mailing lists writes:
> are you sure?
>
> # emerge -s expect
>
> [ Results for search key : expect ]
> Searching...
>
> [...]
> * dev-perl/Expect
>
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
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
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
+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
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
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?
, 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
: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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
...@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
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
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
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
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:
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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??
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
.
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
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
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
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
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
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 - 100 of 1055 matches
Mail list logo