hi Martin,
On Mon, 29 Jan 2024 22:38:27 -0600
"Martin McCormick" wrote:
> Shlomi Fish writes:
> > hi Martin,
> > you can try using an FFI, eg:
> >
> > https://metacpan.org/dist/Inline-C/view/lib/Inline/C.pod
> >
> > https://metacpan.org/
n/view/Python.pod
https://metacpan.org/pod/FFI::Platypus
> Any good ideas are greatly appreciated, here.
>
> Martin McCormick
>
--
Shlomi Fish https://www.shlomifish.org/
Selina Mandrake - The Slayer (Buffy parody) - https://shlom.in/selina
If the miller trav
>
hi William,
I answered many of your questions in the FAQs I comaint. List here:
https://www.shlomifish.org/meta/FAQ/which_faqs_do_you_comaint.xhtml
--
Shlomi Fish https://www.shlomifish.org/
Parody of "The Fountainhead" - https://shlom.in/towtf
Golden rule #12: When the
is very slow. The server
> hardware is similar (RAM / Speed disk, CPU ...)
> Have you some ideas about this issue ?
>
please see: https://perl-begin.org/topics/optimising-and-profiling/ .
> Perl Version on Rocky Linux 8 is 5.26
> Perl Version on Centos 7 is 5.16
>
> Thank
note that it seems like windows will
become more GNU-like:
https://www.shlomifish.org/humour/bits/facts/Windows-Update/#see_also
--
Shlomi Fish https://www.shlomifish.org/
Parody of "The Fountainhead" - https://shlom.in/towtf
"Consistency requires you to be as ignorant today a
hi, Tom,
On Tue, 23 May 2023 11:53:25 +0800
"Tom Reed" wrote:
> Hello list,
>
> How can I sync json object to disk? so that other processes (or next
> startup) can use this json.
>
see https://metacpan.org/pod/JSON::MaybeXS ; make sure to use 'canonical'.
>
re, algorithms,
> syntax, tools). I certainly have experience with C but never I make a long
> program in Perl.
see:
1. https://perl-begin.org/
2.
https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md
3. https://perl-begin.org/FAQs/freenode-perl/
Zia wrote:
> > Hello,
> > Which one of the PERL distribution should I use on windows 11.
> > regards
> > Faiz ul haque Zeya
> > Senior Associate professor BUKC
>
--
Shlomi Fish https://www.shlomifish.org/
https://www.shlomifish.org/lecture/C-and-C
>
> Brandon McCaig <
> bamb...@castopulence.org>
> Castopulence Software <https://www.castopulence.org/>
> Blog <https://www.bambams.ca/ <http://www.bambams.ca/>>
> perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }.
> q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};
* https://perl-begin.org/uses/multitasking/ ( IO::Async / etc.)
* https://metacpan.org/pod/IO::Socket and
https://metacpan.org/pod/IO::Socket::IP .
> uri
>
>
--
Shlomi Fish https://www.shlomifish.org/
Emma Watson Factoids - https://shlom.in/emwatson-facts
Sarah: Tell you what,
https://www.cpan.org/misc/cpan-faq.html
If you want, you can pay someone to do the work for you. I charge 50 USD /
hour and abide by
https://www.shlomifish.org/humour/fortunes/show.cgi?id=shlomif-multiply-by-pi
, but there are other contractors you can hire.
--
Shlomi Fish https://www.sh
; "x");
> $labeled_frame2->Label(-text => "de ma de")->pack();
>
>
> i try
> with this
> $labeled_frame2->configure (-text=>"BaoBABB");
> $mw->update();
>
> but if is a simple label like this :
> $mw->Label(-
sier to spot).
>
> I've just used a command recently that allows me to access the specific ip
> and port of the lamp and it indicates the connection is successful. I'm out
> of ideas and if anyone can advise I'd appreciate it.
>
> Slightly (very) out of my depth when it comes to ports
prepared
> ...
>
> I believe this break is partially due to building artifacts during
> 'make install'. The GNU Coding Standards explicitly states _DO NOT DO
> IT_. The only time things get built is during 'make'.
>
> Does anyone know how to work around this (or any of the
1.0.2 last month).
>
> How do I remove or disable the BerkleyDB dependency?
>
You can try editing the "Configure" script by hand. It is written in
https://en.wikipedia.org/wiki/Bourne_shell .
I recall trying to use Red Hat Linux 6.2 in a vbox VM and giving up after
the new openss
client?
>
Hi!
See:
https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md#how-can-i-write-code-to-perform-operations-on-web-sites-for-me-that-otherwise-should-be-done-manually
(short URL: https://is.gd/ExAHTa )
Regards,
Shlomi
--
/cpan/wrappers-for-distributions/
> /Lars
>
--
-----
Shlomi Fish http://www.shlomifish.org/
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Hi Eliza,
On Mon, 26 Aug 2019 18:37:10 +0800
Eliza wrote:
> Hello,
>
> on 2019/8/26 18:06, Shlomi Fish wrote:
> > seehttps://perl-begin.org/uses/remote-login-and-commands/ - use a CPAN
> > dist. Also note thathttps://metacpan.org/pod/IPC::Run is a commonly cited
> >
works well. However, my program only reads the first line, and then
> terminates.
>
> If I do a manual test, and do ssh u...@remotehost.com, and type multiple
> lines of input, then things work as expected.
>
> Any clues?
>
> Thanks!
> -m
--
n.wikipedia.org/wiki/Fork_(system_call) ,
https://duckduckgo.com/?q=dup+unix=v140-1=web , "open >&" , etc.
> Thanks
--
---------
Shlomi Fish http://www.shlomifish.org/
Best Introductory Programming Language - h
dle with it?
> >
> > Thank you.
> > Eliza
> >
> > --
> > To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> > For additional commands, e-mail: beginners-h...@perl.org
> > http://learn.perl.org/
> >
> >
> >
--
test harness failed
> MIYAGAWA/XML-Atom-0.42.tar.gz: make_test NO one dependency
> not OK (XML::XPath)
> DANJOU/Net-Google-DataAPI-0.2805.tar.gz : make_test NO one dependency
> not OK (XML::Atom); additionally test harness failed
> HIROSE/Net-Google-Spreadshe
/[\,\s\.\-\+\_0-9A-Za-z]/ ) {#printable
> $response = $response . $char;
use .= and you can use https://perldoc.perl.org/functions/join.html and regex
matches. it is good that you follow
https://perl-begin.org/tutorials/bad-elements/#using-character-classes-with-unicode-text
.
> }#printable
> }#
> print "$response\n"
eing grateful and thank
> you and plus I said to anyone that I am the one who solved if instead of
> your name.
>
I understand now, thanks. That seems like a very ungrateful and "bastard"y
thing to do. I won't like it, but not sure how i'll act.
--
---
ert yet in perl and still learning although I know perl
> when I got still in my university 19 years ago.
>
> regards,
>
> Eko Budiharto
>
>
--
-
Shlomi Fish http://www.shlomifish.org/
The Case for File Swa
rypt-my-source-code-to-prevent-end-users-from-learning-how-it-works
This question is very old...
--
-
Shlomi Fish http://www.shlomifish.org/
http://www.shlomifish.org/humour/bits/facts/Summer-Glau/
Cogito cogito ergo cogit
.mflan.com/temp/pause.jpg
>
> If anybody can notify the PAUSE people that the PAUSE
> program appears to be broke, please do.
>
>
>
> Mike
>
--
---------
Shlomi Fish http://www.shlomifish.org/
Understand what
Hi,
On Sat, 18 May 2019 14:02:46 +0200
hwilmer wrote:
> On 5/16/19 9:56 PM, Shlomi Fish wrote:
> > On Thu, 16 May 2019 13:13:16 +0200
> > hwilmer wrote:
> >
> >> On 5/11/19 11:07 AM, Shlomi Fish wrote:
> [...]
> >>>> So I would wa
On Thu, 16 May 2019 13:13:16 +0200
hwilmer wrote:
> On 5/11/19 11:07 AM, Shlomi Fish wrote:
> > Hi hwilmer,
> >
> > On Fri, 10 May 2019 19:09:50 +0200
> > hwilmer wrote:
> >
> >> Hi,
> >>
> >> I would like to use curl to re
he web server,
> regardless whether I save it to an intermediate file or not.
>
> To make things more difficult, the web server is using a self-signed
> certificate.
>
--
-
Shlomi Fish http://www.shlomifish.org/
http:
why.
>
an empty string should be fine.
> Perhaps there’s even a whole better way to approach this! I will be grateful
> to chew over any and all comments you experienced people send me. Thanks!
>
> Rick Triplett
--
---
obvious that this is not a
> solution either.
>
> Perl is good only when is not necessary to hide the code, for example for
> very complex web-based apps that can't be replaced with an already-made free
> CMS, or for special programs that run on a server by a
b2 .)
Otherwise perhaps https://metacpan.org/pod/B::C will work for you or you can
try paying a C programmer to translate the code for you (I can do that!).
> With regards
> Uday V G
--
-----
Shlomi Fish http://www.shlomifish.o
se-should-be-done-manually
(short URL: https://is.gd/Tjo3KR .)
Regards,
Shlomi
> Thanks,
> James
--
-----
Shlomi Fish http://www.shlomifish.org/
List of Text Processing Tools - http://shlom.in/text-proc
Skill wit
https://plackperl.org/
* https://metacpan.org/release/CGI-Minimal
Thanks to Uri too.
Regards,
Shlomi Fish
> foreach my $pair (@name_value_pairs){
> my ($key, $value) = split /=/, $pair;
> chomp ($key, $value);
> $pf{$key} = $value;
> }
> return
//www.reddit.com/r/perl/comments/3hfsqt/fileslurp_is_broken_and_wrong/
for better alternatives to File::Slurp .
> my $text = read_file( $file_to_convert ) ;
> $text =~ s/\r/\n/g;
> $text =~ s/\x0b//g ;
>
> no need for xms if you aren't using those features.
>
> uri
>
>
l-begin.org/uses/databases/ . I also maintain this page -
http://www.shlomifish.org/open-source/resources/databases-list/ .
--
---------
Shlomi Fish http://www.shlomifish.org/
UNIX Fortune Cookies - http://www.shlomifish.org/humour/f
* http://perl-begin.org/topics/regular-expressions/
* https://github.com/aloisdg/awesome-regex
* https://www.regular-expressions.info/
>
>
>
> Thanks,
>
>
>
>
>
--
-
Shlomi Fish http:
US.UTF-8"
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT="en_US.UTF-8"
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
>
>
On Thu, 5 Jul 2018 09:58:52 -0500
p...@reason.net wrote:
> Many thanks to Shlomi and Uri: as always, you’ve greatly boosted my
> understanding of Perl! — Rick
>
You're welcome.
--
-----
Shlomi Fish http://www.shlom
tes.
>
> Thanks!
>
> Rick Triplett
--
-----
Shlomi Fish http://www.shlomifish.org/
First stop for Perl beginners - http://perl-begin.org/
After all is said and done, a hell of a lot more is said than done.
— Unclea
f-installed-cpan-modules
.
Found in a google search.
--
-----
Shlomi Fish http://www.shlomifish.org/
What Makes Software Apps High Quality - http://shlom.in/sw-quality
XSLT is the number one cause of programmers’ suicides s
On Mon, 4 Jun 2018 11:20:53 +0100
Gary Stainburn wrote:
> On Monday 04 June 2018 10:39:28 Shlomi Fish wrote:
> > is there anything in https://en.wikipedia.org/wiki/Environment_variable ?
>
> I do have some interesting perl settings, although I have no idea where they
&
Hi Dmitri,
On Thu, 14 Jun 2018 11:34:34 +0300
Дмитрий Ананьевский wrote:
> On Wed, 13 Jun 2018 21:21:12 -0500
> "Martin McCormick" wrote:
>
> > I wrote a small perl program to more quickly read all the
> > subjects in an email list. One of the things the script does is
> > to remove the
st the first message in a list of N messages of the same
> subject. so, if there are 120 messages with the subject of "how
> did you spend your Summer?", I read the first of those subject
> lines and none until the first message that doesn't have that
> title.
>
> A
Hi,
why did you resurrect a one year old's thread for which there were proper
replies here -
https://www.nntp.perl.org/group/perl.beginners/2017/05/msg126502.html and here
- https://github.com/shlomif/project-euler/tree/master/project-euler/8 . just
let sleeping dogs rest. Some comments on your
Hi,
On Mon, 4 Jun 2018 10:28:09 +0100
Gary Stainburn wrote:
> On Monday 04 June 2018 09:36:02 Shlomi Fish wrote:
> > what does "perldoc -l MIME::Parser" say? Also see
> > http://perl-begin.org/FAQs/ and http://perl-begin.org/topics/cpan/ .
>
> I have t
On Sat, 2 Jun 2018 07:30:48 -0500
p...@reason.net wrote:
> Very useful advice, Shlomi; thanks!
>
you are welcome! Also see http://perl-begin.org/tutorials/bad-elements/ , which
I also maintain.
>
> > On Jun 2, 2018, at 3:57 AM, Shlomi Fish wrote:
> >
> > On Fri
.
>
what does "perldoc -l MIME::Parser" say? Also see http://perl-begin.org/FAQs/
and http://perl-begin.org/topics/cpan/ .
--
-
Shlomi Fish http://www.shlomifish.org/
http://youtu.be/KxGRhd_iWuE - Never Give Up!!
What's the point
r more.
> die "$student_surname, $hyphen, $student_number”;
>
> Rick Triplett
>
--
-
Shlomi Fish http://www.shlomifish.org/
Best Introductory Programming Language - http://shlom.in/intro-lang
A horse! A h
try https://en.wikipedia.org/wiki/Htop or similar to be sure?
>
> Thanks,
> Satya
--
-
Shlomi Fish http://www.shlomifish.org/
http://www.shlomifish.org/humour/bits/New-versions-of-the-GPL/
How many “one-liners” do I actually write? I don’t know; maybe a couple
What am I doing wrong?
>
Perhaps see http://perldoc.perl.org/perlunitut.html - you may need to read the
file as binary or iso8859-1 or whatever. Also see
https://github.com/shlomif/how-to-share-code-online and read what Andy noted.
> Gary
>
--
----
for the variable?
>
> - What will be the syntax for the $ldap->modify statement?
>
> Thanks in advance,
>
> Olivier
>
>
>
--
-
Shlomi Fish http://www.shlomifish.org/
“So, who the hell is Qoheleth?” - http://shlom.in/qoheleth
When people agree w
useful to use #, % and other delimiters which do
not naturally occur in regexes or otherwise.
--
-
Shlomi Fish http://www.shlomifish.org/
Selina Mandrake - The Slayer (Buffy parody) - http://shlom.in/selina
*Chuck*: Indeed. Anyway, I invited a friend wh
Hi jose,
please see http://www.shlomifish.org/Files/files/code/bugzilla.patch for my
patch against bugzilla 3.2 to get it to compile with recent perls.
On Mon, 26 Feb 2018 05:43:45 +0100
"jose cabrera" wrote:
> On Sunday, February 25, 2018 at 11:26 PM, "Uri Guttman" wrote...
Hi jose,
On Mon, 26 Feb 2018 05:56:19 +0100
"jose cabrera" wrote:
> Greetings!
>
> I just installed perlbrew and I tried installing perl v5.8.9 to prevent
> trying to fix a bunch of v5.8.9 perl code, but it failed. The first thing
> that came to mind was x64 vs x32. Can this
does not return
> >> full reply from server. Any clue? It just returns part of it. Is it
> >> timeout? or what?
> >> Thanks.
> >>
> >>
> >> --
> >> --
> >> Lancelot Mak
> >>
> >
>
>
--
---
use LWP::Simple;
my $url="https://shlomif.github.io/;;
# my $url="https://notabug.org/;;
if (! head($url)) {
die "$url is DOWN";
}
seems like notabug blocks libwww-perl.
>
> However, firefox shows the site works ok.
>
same here.
Regards,
Shlomi
>
>
tly where needed. See:
* http://perldoc.perl.org/functions/sprintf.html
* http://perl-begin.org/uses/text-generation/
e.g:
print "I am ", sprintf("%e", $age), " years old.";
Regards,
Shlomi
--
-------
{resending}
Hi Mike,
On Wed, 13 Dec 2017 11:28:55 +
Mike Martin wrote:
> Hi
> I have the following code
>
> use strict;
> use File::Find;
> my @vsbe;
> my $top='P:\PT-6\PT-60\PT-603\Shared\Data Store\Files Dump Folder';
> my $max_depth=9;
> my $cnt1=0;
>
>
tps://shlomif-tech.livejournal.com/29315.html for an article I
wrote about some other philosophical limitations of F::F that I solve (one of
them is similar to your use case).
Regards,
Shlomi
--
-
Shlomi Fish http://www.shlomifish
On Thu, 7 Dec 2017 12:44:51 -0800
SSC_perl <p...@surfshopcart.com> wrote:
> > On Dec 7, 2017, at 12:04 PM, Shlomi Fish <shlo...@shlomifish.org> wrote:
> >
> > What does:
> >
> > say "@INC";
> >
> > say if you add it to the
t-type: text/html\n\n";
> say 'Perl '. $^V;
Hi Frank!
What does:
say "@INC";
say if you add it to the script?
--
-
Shlomi Fish http://www.shlomifish.org/
The Case for File Swapping - http://shlom.in/file-swap
Real men don’t listen to sentences that start
here is also
App::Cmd https://metacpan.org/search?q=app%20cmd and similar modules.
>
> Thanks,
> Luca
>
--
---------
Shlomi Fish http://www.shlomifish.org/
http://www.shlomifish.org/humour/bits/New-versions-of-the
d
( http://perl-begin.org/tutorials/perl-for-newbies/part2/#page--debugger--DIR ),
https://metacpan.org/pod/Data::Dumper , https://metacpan.org/pod/DDP , and some
debugger GUIs such as https://en.wikipedia.org/wiki/Data_Display_Debugger .
Regards,
Shlomi
> Thank you.
>
> Martin
so helps when combining PERL and PHP apps
>
"Perl" is not an acronym - see
http://perl-begin.org/learn/Perl-perl-but-not-PERL/ and
https://github.com/perl-doc-cats/perlfaq/blob/master/lib/perlfaq1.pod#whats-the-difference-between-perl-and-perl
.
Regards,
Shlomi
--
--
> >
> > Searching hasn't returned an answer. Is there another way to get
> > what I'm after?
> >
> > Thanks,
> > Frank
> > --
> > To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> > For additional commands, e-mail: begin
Hi,
On Sun, 05 Nov 2017 18:21:25 -0600
"Martin McCormick" <marti...@suddenlink.net> wrote:
> Shlomi Fish <shlo...@shlomifish.org> writes:
> > Hi Martin,
> >
> > please see https://metacpan.org/release/warnings-unused as well as
> > http://perl
.org/release/warnings-unused as well as
http://perl-begin.org/topics/cpan/wrappers-for-distributions/ and
http://perl-begin.org/topics/cpan/ . It should not be hard to install and your
Linux distro may already have it packaged. It is just that it was already
available on your FBSD system.
--
On Wed, 4 Oct 2017 23:26:31 +0530
Asad wrote:
> Hi All
>
> I have perl script abc.pl and module abc.pm . When i execute abc.pl which
> is using one the modules
>
Hi Asad!
Please see https://github.com/shlomif/how-to-share-code-online and comply with
the instructions
On Tue, 05 Sep 2017 04:24:31 +0200
hw <h...@adminart.net> wrote:
> Shlomi Fish <shlo...@shlomifish.org> writes:
>
> > Hi hw,
> >
> > On Mon, 28 Aug 2017 04:54:04 +0200
> > hw <h...@adminart.net> wrote:
> >
> >> Hi,
> &g
some
relevant results including
https://stackoverflow.com/questions/8352027/gtk-timer-how-to-make-a-timer-within-a-frame
.
There are examples for using it in Perl in t/9.t here -
https://git.gnome.org//browse/perl-Glib .
Hope it helps!
--
----
Hi hw!
Please see
http://www.shlomifish.org/philosophy/computers/netiquette/email/reply-to-list.html
.
On Sat, 1 Jul 2017 19:15:22 +0200 hw <h...@gc-24.de> wrote:
> Shlomi Fish wrote:
> > Hi Shawn!
> >
> > On Sat, 1 Jul 2017 11:32:30 -0400
> > Shawn H Co
bug.
>
> >
> > + What is being printed here?
>
> !!$i which is !(!(0)) which is !(1) which is 0
>
I suspect !1 returns an empty string in scalar context.
> >
> > + How do you do what I intended in perl?
> >
>
> How do we know what you intend
ok into alternatives on
CPAN such as https://metacpan.org/pod/File::Find::Object (which I happen to
maintain) or https://metacpan.org/pod/Path::Iterator::Rule#SEE-ALSO . For more
about that, see:
http://shlomif-tech.livejournal.com/29315.html
Regards,
Shlomi Fish
--
-
Hi lee,
I decided to try to give you another chance to be educated, despite Uri's
conclusion in the other thread. Hopefully you won't let me down.
On Thu, 25 May 2017 16:48:13 +0100
lee <l...@yagibdah.de> wrote:
> Shlomi Fish <shlo...@shlomifish.org> writes:
>
> > [.
Hi lee!
On Thu, 25 May 2017 02:24:05 +0100
lee <l...@yagibdah.de> wrote:
> Shlomi Fish <shlo...@shlomifish.org> writes:
>
> > Hi all!
> >
> > Resending because the original message does not appear to have arrived at
> > the list.
> >
> > ==
On Tue, 16 May 2017 20:35:55 +0900
Masayoshi Fujimoto wrote:
> Hi.
> I really appriciate your help. It worked for me.
>
You're welcome!
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
Hi!
On Tue, 16 May 2017 20:11:52 +0900
Masayoshi Fujimoto wrote:
> Hi.
>
> I would like to get $celebrity.
>
> How should I do?
>
I have modified your code based on
https://metacpan.org/pod/distribution/Tk/pod/Entry.pod to get what seems to be
the desired result:
«
-- Shlomi
> Derrick
>
> ------
> 发件人:Shlomi Fish<shlo...@shlomifish.org>日 期:2017年05月16日
> 16:54:39收件人:<derr...@thecopes.me>抄 送:Beginners Perl
> List<beginners@perl.org>主 题:Re: project euler #8Hi
f digits.
> say "@numbline ";
>my @product = ();
> for (0..$#numbline - 13) {
This should be "@numbline - 13" - an off-by-one error.
Regards,
Shlomi Fish
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
On Sun, 14 May 2017 12:08:59 +0300
Shlomi Fish <shlo...@shlomifish.org> wrote:
> Hi lee,
>
> On Sat, 06 May 2017 02:06:19 +0100
> lee <l...@yagibdah.de> wrote:
>
> > Hi,
> >
> > how can a sleeping program react to a key that was pressed without
&g
strict;
use warnings;
use Term::ReadKey;
ReadMode 4; # Turn off controls keys
my $key;
while (not defined ($key = ReadKey(-1))) {
# No key yet
}
print "Get key $key\n";
ReadMode 0; # Reset tty mode before exiting
»
Note th
one at a time. You will also need to address the fact
> that Perl’s integers cannot represent the number 600851475143 in their normal
> 32- or 64-bit formats. See ‘perldoc bignum’.
>
> Also note that the smallest factor of any number cannot be larger than the
> square root of that number, so the function ispri
you can optimise the algorithm considerably by using some tricks. See:
https://duckduckgo.com/?q=project+euler+3=web
Perhaps see https://duckduckgo.com/?q=prime+factorization=web too.
Regards,
Shlomi Fish
--
-
Shlomi Fish
> http://learn.perl.org/docs/keywords.html
>
--
-----
Shlomi Fish http://www.shlomifish.org/
Let’s talk about restores instead of backups - http://is.gd/WatQqu
A rose by a name picked by Chuck Norris, will smell sweeter.
— http://www.shlomifish.org/humour/bits/facts/Chuck
@array)
{
if (@remove and $i == $remove[0])
{
shift@remove;
}
else
{
push @new, $v;
}
}
@array = @new
===
https://en.wikipedia.org/wiki/There%27s_more_than_one_way_to_do_it
Regards,
Shlomi Fish
> >
> >
Not sure why wget wasn’t installed with Xcode Developer Tools.
>
> Frank
Hi Frank!
What you say sounds strange. WWW-Mech should not require wget. Perhaps they
both use a common dependency.
--
---------
Shlomi Fish http://www.sh
Forwarding to the list.
Begin forwarded message:
Date: Wed, 29 Mar 2017 11:32:08 -0400
From: Shawn H Corey <shawnhco...@gmail.com>
To: Shlomi Fish <shlo...@shlomifish.org>
Subject: Re: how to recursion
On Wed, 29 Mar 2017 17:22:36 +0300
Shlomi Fish <shlo...@shlomi
Hi Shawn!
On Wed, 29 Mar 2017 08:09:12 -0400
Shawn H Corey wrote:
> On Wed, 29 Mar 2017 09:25:06 +0800
> PYH wrote:
>
> > sub my_recursion {
> > my $self = shift;
> >
> > if (...) {
> > $self->my_recursion;
>
> # you
s for. Note that for X11,
there's https://metacpan.org/release/X11-GUITest on CPAN and other similar
toolkits in other languages as well.
--
-
Shlomi Fish http://www.shlomifish.org/
Original Riddles - http://www.shlomifish.org/pu
Hi Luca,
On Mon, 27 Mar 2017 16:04:22 +0200
Luca Ferrari wrote:
> Hi all,
> I've to run a very old application from the command line (unix), it
> seems to me a ncurses application but I'm not sure that is the real
> case (let's say it seems ncurses).
> Anyway, I have to
t;What-the-f??"-y. One should avoid embedding such long code (beyond a short
-e or -E string) in bash at all, and keep the code in a separate program file
(also see the Modulino concept -
http://perltricks.com/article/107/2014/8/7/Rescue-legacy-code-with-modulinos/
and https://www.m
ject systems such as Moose or Moo
provide many more features. For a little about the motivation behind setters,
getters and accessors, see this page on a site I maintain (note the anchor):
http://perl-begin.org/tutorials/perl-for-newbies/part5/#page--accessors--DIR
Regards,
Shlomi Fish
uot;perl-Net-SFTP" on various package repositories. Otherwise you can try doing
"cpan -i Net::SFTP" (possibly after installing some compilers and libararies'
*-devel pacakges). Good luck!
Regards,
-- Shlomi
--
-----
Shlom
t's a page
on my site).
Good luck!
Regards,
Shlomi Fish
--
-----
Shlomi Fish http://www.shlomifish.org/
Beginners Site for the Vim text editor - http://vim.begin-site.org/
He who reinvents the wheel, may actually inven
ps try using \G and the /g and possibly /o flags , see:
http://perl-begin.org/uses/text-parsing/
(Note that perl-begin is a site that I maintain).
Regards,
Shlomi Fish
> Please note, a raw solution is to remove the command and split, but
> I'm a
On Tue, 31 Jan 2017 17:29:10 +0530
Uday Vernekar <vernekaru...@gmail.com> wrote:
> Thanks shlomi ,working on your inputs...Thanks:)
>
You're welcome, Uday!
--
-----
Shlomi Fish http://www.shlomifi
scalar instead of a list.
>
> my $Result = `grep "Base MAC Address" \/mnt\/backup\/$Directory\/$name |
> tail -n 1 `;
don't use /bin/grep when you can use perl's file and text processing tools.
> my ($str,@mac) = split(":",$Result);
> if($mac[1] ne "05") {
>
> @mac=" MAC NOT PROGRAMMED\n";
> #print "\n";
> print DATAOUT " $name\t\t@mac\n" ;
> }
> else{
> print DATAOUT " $name\t\t
> $mac[0]:$mac[1]:$mac[2]:$mac[3]:$mac[4]:$mac[5]\n" ;
> }
> }
> }
>
> ($userPath);
>
> close(DATAOUT);
>
>
>
>
>
In short - this code should really be refactored, corrected, and modernised.
Perhaps you should read http://www.onyxneon.com/books/modern_perl/index.html or
a similar book or tutorial - see http://perl-tutorial.org/ and
http://perl-begin.org/ .
Regards,
Shlomi Fish
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
fer. You can use it for
executables using https://metacpan.org/pod/Dist::Zilla::Plugin::ExecDir .
Also note that I started working on
https://github.com/shlomif/dzil-dist-ini-format-documentation but it may be
lacking in part because there are several layers to the dist.ini pars
1 - 100 of 1302 matches
Mail list logo