Re: Upgrade from Debian 11 to Debian 12 Broke Perl.

2024-03-11 Thread John SJ Anderson
> Can't locate warnings/unused.pm in @INC (you may need to install the > warnings::unused module) (@INC contains: /etc/perl > /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 > /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 > /usr/lib/x86_64-linux-gnu/perl-base /u

Re: Knowledge for a basic programmer and advanced programmer

2024-01-05 Thread John SJ Anderson
> If you are coding you should be backing up every > 10 minutes or more often. And you should store > a "historical" full copy of the code every 30 minutes > or more often and save them for days. No, you shouldn’t, because it is no longer 1985. You should learn how to use version control; the

Re: A Philosophical Point To Be Made: The Truth

2021-10-26 Thread John SJ Anderson
This is off-topic for this mailing list; please take this discussion elsewhere. thanks, john, list mom. > On Oct 26, 2021, at 03:06, Shlomi Fish wrote: > > Hi Brandon! > >> On Sun, 17 Oct 2021 01:15:13 -0400 >> Brandon McCaig wrote: >> >> Hello All, >> >> It has been a while. I haven't

Re: Wide character in print at HTML::TreeBuilder::XPath function

2020-01-26 Thread John SJ Anderson
> That, I am very grateful to report, solved that question. I guess the > scope of "use utf8;" is more narrow than I had thought. When you have a bit of time, sitting down and reading through https://github.com/rgs/p5-intelligible-unicode is a re

Re: ActiveState unauthorized license claims?

2019-05-31 Thread John SJ Anderson
> probably that's the wrong list for that question but I didn't find a better > one - hints are welcome. Yes, this is very much not the right list for this. I would suggest posting this to the Perl 5 Porters list; it’s probably the best venue to get an answer to your question. https://lists.

Re: What are the environmental variables used by Perl?

2019-05-30 Thread John SJ Anderson
> > Do you know if there is a list of environmental variables anywhere? I think maybe this is what you’re looking for? https://perldoc.pl/perlrun#ENVIRONMENT

Re: project euler #8

2018-06-07 Thread John SJ Anderson
Hi Shlomi. A reminder that sometimes when somebody does something, you can just ignore the email and _not_ reply to it. Thanks, John the list mom. -- John Anderson // j...@genehack.org > On Jun 7, 2018, at 08:58, Shlomi Fish wrote: > > Hi, > > why did you resurrect a one year old's thr

Re: CPAN will shutdown

2018-05-22 Thread John SJ Anderson
> On 22May2018, at 20:41, Practical Perl wrote: > > search.cpan.org is shutting down > For details read Perl NOC. After June 25th this page will redirect to > MetaCPAN.org 1) Please don’t cross-post between this list and other lists. It’s rude. 2) It’s not “shutting down” so much as it is b

Re: [^/]* Is Not Working

2018-03-17 Thread John SJ Anderson
> But this one in its place does not work: > if ($link =~ m/\/([^/]*)$/) { # Oddly this does not work You still need to escape the `/` inside the character class. This works in my testing: `m/\/([^\/]*)$/`. IMO this is a case where an alternative delimiter for `m//` — such as the `#` in your

Re: dangerous perl (Re: is this reasonably save?)

2017-05-26 Thread John SJ Anderson
Take. It. Off. The. List. I've asked nicely. Now I'm telling you. Take it off the list. John List moderator. -- John Anderson // j...@genehack.org > On May 26, 2017, at 19:09, Kent Fredric wrote: > >> On 27 May 2017 at 00:01, lee wrote: >> You have a variable. > > Even in C, you'd hav

Re: dangerous perl (Re: is this reasonably save?)

2017-05-25 Thread John SJ Anderson
Folks, this has passed the event horizon of what’s appropriate for the Beginners list a good while back. If y’all wanna continue this conversation, please kindly do so outside the bounds of this mailing list. thanks, john, the resident list mom. > On 25May2017, at 10:52, Uri Guttman wrote:

Re: WWW::Mechanize requires wget

2017-04-04 Thread John SJ Anderson
> On 4Apr2017, at 11:13, SSC_perl wrote: > >> On Apr 4, 2017, at 10:59 AM, John SJ Anderson wrote: >> >> I’m not sure what was behind the resolution of your problem, but I can >> assure you I’m typing this on a Macintosh without wget installed, and >

Re: WWW::Mechanize requires wget

2017-04-04 Thread John SJ Anderson
> On 4Apr2017, at 10:43, SSC_perl wrote: > > This is a heads up for anyone wanting to use WWW::Mechanize on OS X. [snip] Apple ships ‘curl’ instead of ‘wget’. Always has; not sure why. ‘wget’ is *NOT* required for WWW::Mechanize on MacOS, however. I’m not sure what was behind the reso

Re: search and replace

2016-06-29 Thread John SJ Anderson
> On Jun 29, 2016, at 09:20, Uri Guttman wrote: > > since you are correct about modules being already there, why do you write > your own versions of > slurp_file and write_file? the module File::Slurp has those functions which > are stable, fast and debugged. Please don’t use File::Slurp. Se

Re: how to install WWW::Salesforce::Simple on a Mac? cpanm refuses to install Crypt::SSLeay

2016-04-15 Thread John SJ Anderson
> Apparently the Crypt::SSLeay module won't install for my protection > (HeartBleed?), but it is still a required prerequisite for > WWW::Salesforce. Apple stopped distributing the OpenSSH headers recently. Those are required to build Crypt::SSLeay. You can get the source for OpenSSH and insta

Re: Storing Output file.

2016-02-01 Thread John SJ Anderson
> On Feb 1, 2016, at 05:34, Thomas J Hughes wrote: [ snip ] This is *completely* inappropriate for the perl-beginners list, or as an off-list reply to a message received from the list. If you don't want to get email related to people trying to learn the Perl language, I suggest you make use o

Re: converting Genbank format in gff format

2015-08-18 Thread John SJ Anderson
On Mon, Aug 17, 2015 at 3:58 PM, Uri Guttman wrote: > On 08/17/2015 03:57 AM, atteyet-alla.yas...@ukb.uni-bonn.de wrote: > > hi all, > > is there a possibilty to convert Genbank format in gff format using perl? > I installed perl5 in my linux. > > Atteyet-Alla -- there's a 'genbank2gff' script in

Re: reading from socket

2015-08-11 Thread John SJ Anderson
On Tue, Aug 11, 2015 at 5:24 AM, Chris Knipe wrote: > > > my $numBytesToRead = 512; > > my $buffer; > > while ($bytesRead = read($TCPSocket, $buffer, $numBytesToRead)) { > > if ($buffer =~ m/\r\n\.\r\n$/) { > > print $buffer; > > last; > > } > > } > > > > I’m obviously doing this wron

Re: reading from socket

2015-08-11 Thread John SJ Anderson
On Tue, Aug 11, 2015 at 6:58 AM, John SJ Anderson wrote: > On Tue, Aug 11, 2015 at 5:24 AM, Chris Knipe wrote: > >> >> >> my $numBytesToRead = 512; >> >> my $buffer; >> >> while ($bytesRead = read($TCPSocket, $buffer, $numBytesToRead)) { >>

Re: Compilation fails with Padre (a Perl IDE) on RHEL-based distros (CentOS, etc.)

2015-05-26 Thread John SJ Anderson
On Tue, May 26, 2015 at 8:53 AM, someone called wrote: > ATTENTION: It apperars 'g++' is not a working compiler, please make > sure all necessary packages are installed. > > that is your problem. For whatever reason, g++ (the GNU C++ compiler) is not installed properly, or is not being foun

Re: Perlists groupware service

2015-04-15 Thread John SJ Anderson
I don't see any indication that web site is at all affiliated with this mailing list. What leads you to think we can answer your question? On Wed, Apr 15, 2015 at 2:59 AM, Masayoshi Fujimoto < m.fujim...@rocketmail.com> wrote: > Hi. > How should I delete my email address from the following websit

Re: Doubt

2015-03-29 Thread John SJ Anderson
Please show exactly what commands you ran and what output you got. In what you're reporting, there's a typo, and it's not clear if that's a copy-paste error or a problem in the actual command. chrs, john. On Mon, Mar 30, 2015 at 1:16 AM, Frank Vino wrote: > When i try to install Alias.pm file

Re: Why doesn't this script error?

2015-03-14 Thread John SJ Anderson
Try again with 'use strict' and 'use warnings' turned on. On Sat, Mar 14, 2015 at 1:40 PM, Sherman Willden wrote: > I am new to Eclipse and Epic so I wrote the below script which I thought > would error but it runs. Why? > > #!/usr/bin/perl > > use 5.18.2; > > print "Hello World \n"; > > print t

Re: Re[2]: Need something like macro

2015-03-09 Thread John SJ Anderson
On Mon, Mar 9, 2015 at 12:48 PM, Артём Варнайский wrote: Execution time of inline variant approximately 17.6ms, subroutine solution > slower about 26%. My script is captcha generator. Random sign used very > often during execution. I think 26% is a lot enough in this case. > > And the average lat

Re: How does opendir/readdir process files

2015-01-14 Thread John SJ Anderson
On Tue, Jan 13, 2015 at 7:40 PM, Brandon McCaig wrote: > Harry: > > (Expect typographical errors in such a long post...) > > tl;dr? RTFM. Please don't tell people that. It's not helpful, it's not a helpful attitude, and it's really not welcome here. The rest of your post may be excellent, but I

Re: How does opendir/readdir process files

2015-01-08 Thread John SJ Anderson
On Thu, Jan 8, 2015 at 5:52 PM, Harry Putnam wrote: > Opening a directory and readdir with a grep in there to find specific > filenames, how does that process collect the files? See http://www.perlmonks.org/?node_id=533744 tl;dr: it depends on your OS. > I mean will the generated @ar of files

Re: Unable to install Net::IP

2014-12-02 Thread John SJ Anderson
Whenever you have a module installation fail, your first step should be to ask: is it failing for other people? Results of CPAN Testers (which is basically a distributed testing network) are available on the dist's MetaCPAN page. For Net::IP, that's here: https://metacpan.org/pod/Net::IP (Spoiler

Re: At wits end CG::unescape

2014-11-25 Thread John SJ Anderson
What version of CGI::Application do you have installed? Assuming the most recent one (https://metacpan.org/source/MARKSTOS/CGI-Application-4.50/lib/CGI/Application.pm), line 1951 is: if ( $p{path_info} && $self->query->path_info() ) { $self->query calls the 'query' method, defined at line 49

Re: CGI::Application::Plugin::TT

2014-11-12 Thread John SJ Anderson
On Wed, Nov 12, 2014 at 4:54 AM, Patton, Billy N wrote: > I’ve , mistakenly, updated to Mac OS 10.10 Yosemite. > That completely caused my app to fail in Apache 2.4. > Looks like it might be a version problem for TT.pm TT.pm is really 'Template.pm'. Are you sure the Perl you're using has it insta

Re: (Possibly a terrible lamer) is `open' format wrong

2014-11-03 Thread John SJ Anderson
On Mon, Nov 3, 2014 at 9:57 AM, Harry Putnam wrote: > Ken Slater writes: that attribution is wrong. Ken didn't say this, Shlomi did. >> It is a good idea to avoid using $_ in production code: This is an opinion. I think it's ... I hesitate to use the word "controversial", but it's not uni

Re: Interactive perl based application who works as per schedule

2014-10-09 Thread John SJ Anderson
On Thu, Oct 9, 2014 at 2:19 AM, Benjamin Fernandis wrote: > Hi, Hi! [ snip ] > Please suggest me for this. I suggest you don't try to re-invent cron. Cron works. Cron is a known quantity. You don't need to re-invent cron. What you need is a way to let other people edit crontab files, with a b

Re: Any project like Ipython/Bpython in Perl.

2014-09-15 Thread John SJ Anderson
On Mon, Sep 15, 2014 at 5:19 AM, Sam wrote: > If you are just looking for a REPL, look at: > https://metacpan.org/pod/Devel::REPL IMO, Reply is a little nicer - https://metacpan.org/pod/distribution/Reply/bin/reply j. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional co

Re: returning arrays

2014-09-09 Thread John SJ Anderson
On Tue, Sep 9, 2014 at 2:57 PM, Shawn H Corey wrote: > Lists are sequences used by Perl. They are very short lived, seldom > longer than one statement. The way I've always liked to explain this is that arrays are the containers you use to store a list. As Shawn says, a list is usually pretty ep

Re: [ANN] SurfShop 1.6.1 Shopping Cart Released

2014-09-07 Thread John SJ Anderson
Hi - This is a list for people starting to learn Perl, or with Perl questions. It's not a list for announcing software written in Perl, so your post here is off topic. thanks, john. On Sat, Sep 6, 2014 at 5:55 PM, SSC_perl wrote: > Sorry for a repost so soon, but if you downloaded Sur

Re: cygwin64 perl blead YAML and JSON backend chicken and egg.

2014-09-07 Thread John SJ Anderson
Hi Dave - I really don't think Perl beginners is the best place to be asking this question. Have you considered trying something like http://code.activestate.com/lists/perl-win32-users/ ? That seems like a more likely place to connect with somebody who can help you. chrs, john. On Mon, Sep 1, 2

Re: return the list content

2014-08-18 Thread John SJ Anderson
On Mon, Aug 18, 2014 at 1:38 AM, Paul Johnson wrote: > On Mon, Aug 18, 2014 at 04:17:53PM +0800, Ken Peng wrote: >> which one is the better way to return the list content? And if the >> method is an instance method? > > Functionally, the two are identical. The first is returning a reference > to

Re: Why Does the Following Not Work?

2014-07-30 Thread John SJ Anderson
> die("***YOU MUST HAVE A DESTINATION ADDRESS/NETWORK address.\n") > if (@destinations); Don't you mean 'if !@destinations' or 'unless @destinations' here? That test is for whether @destinations has any entries. % perl -E 'my @x=(); say "lives" if (@x)' % perl -E 'my @x=(1); say "dies" if (@x)'

Re: Apologetic request for simple one-off script

2014-07-14 Thread John SJ Anderson
You were asked to take this off list once. I'm now telling you, in my official capacity as list moderator: further discussion of this is off-topic and does not belong on this list. Let it go. thanks, john. On Mon, Jul 14, 2014 at 7:18 AM, John Delacour wrote: > > On 14 Jul 2014, at 14:11, Sh

Re: Apologetic request for simple one-off script

2014-07-14 Thread John SJ Anderson
Hi. List Mom here. Please take this off list, it's not on-topic. John: Thank you for answering the OP's question. However, Shlomi is right, the two argument form of open() is something that the general Perl community considers to be a deprecated style that should not be used with new code. This l

Re: Creating a hash of arrays from

2014-07-09 Thread John SJ Anderson
On Wed, Jul 9, 2014 at 6:59 PM, SSC_perl wrote: > If someone could explain what I'm doing wrong, I'd appreciate it. I > just can't see it. You're looping over the entries in the array, not the entries in the hash. > foreach my $state (sort keys %entries) { > say "The Zip Codes of $

Re: CGI script produces blank screen

2014-06-27 Thread John SJ Anderson
On Fri, Jun 27, 2014 at 7:34 PM, SSC_perl wrote: > Any input would be greatly appreciated! Look in the web server error log. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Install Alien SVN::Core

2014-06-15 Thread John SJ Anderson
On Sun, Jun 15, 2014 at 11:36 AM, Tim Dunphy wrote: > Ok! Well if I do a which on that program: > > [root@uszmpaplp005lc apr-util-1.5.3]# which apu-1-config > /usr/bin/apu-1-config > > It's found. Yay! That's finding the system one, not the one you just installed under /usr/local/apr/bin. > But

Re: perlbrew error

2014-06-15 Thread John SJ Anderson
On Sun, Jun 15, 2014 at 10:31 AM, Subinoy Biswas wrote: > Hi, > I am having a trouble installing any module with cpanm in perlbrew > perl-5.20.0 in an test1 local lib. Below I am pasting the verbose. Please > help me to solve this issue So, you need to install Tie::Hash::Indexed: > Can't locate

Re: Install Alien SVN::Core

2014-06-15 Thread John SJ Anderson
On Sun, Jun 15, 2014 at 10:39 AM, Tim Dunphy wrote: > Hi John, > > -- > /usr/bin/install -c -m 644 aprutil.exp /usr/local/apr/lib > /usr/bin/install -c -m 755 apu-config.out /usr/local/apr/bin/apu-1-config > > However when I do a

Re: Install Alien SVN::Core

2014-06-15 Thread John SJ Anderson
On Fri, Jun 13, 2014 at 3:45 PM, Tim Dunphy wrote: > How can I specify apr-util to this perl module when apr-util 1.5.1 is > already installed. Can you confirm that 'which apr-util' shows that the command is actually in your $PATH? j. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org

Re: Running module using cpan.

2014-06-10 Thread John SJ Anderson
On Tue, Jun 10, 2014 at 9:47 PM, Priyal Jain wrote: > Hello, > > I uploaded my module in CPAN on 02June,2014 > http://search.cpan.org/search?mode=all&query=Net%3A%3ANetconf but while > installing my module using cpan i.e. "cpan Net::Netconf" its giving warning Have you seen https://rt.cpan.org/

Re: how to create a text progress status line that updates on the same line in Perl?

2014-06-10 Thread John SJ Anderson
On Tue, Jun 10, 2014 at 2:59 PM, Kenneth Wolcott wrote: > Hi All; > > how to create a text progress status line that updates on the same line in > Perl? You mean something like https://metacpan.org/pod/Text::ProgressBar::Bar ? Maybe reading that source code would be informative. 8^) chrs, john

Re: regular expression

2014-05-06 Thread John SJ Anderson
On Tue, May 6, 2014 at 10:30 PM, Danny Wong (dannwong) wrote: > Both string are possible outputs, so I want to be able to grep for the > username only. Well, if the username will always be either the only thing between 'by' and 'on', or in parens if it's not... #! /usr/bin/env perl use strict;

Re: regular expression

2014-05-06 Thread John SJ Anderson
On Tue, May 6, 2014 at 10:19 PM, Danny Wong (dannwong) wrote: > What is a regular expression where I can extract ³danwong² from either > string (one string have () parentheses and the other doesn¹t have > parentheses)? I'm not entirely sure what you're trying to accomplish, but perhaps something

Re: small puzzle

2014-04-25 Thread John SJ Anderson
*puts on List Mom hat* Okay, we're done here. The original question was asked and answered (a couple times). Let's move on and get back to dealing with Perl questions, not personalities. thanks, john. *takes List Mom hat back off* -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For a

Re: small puzzle

2014-04-25 Thread John SJ Anderson
On Fri, Apr 25, 2014 at 12:18 PM, Harry Putnam wrote: > About just using 'shift': How I happened to be using that weird > looking notation at all was because I thought it was a way to avoid > the extra step of compiling the rgx in qr// after shifting. My advice to you on this point would be tha

Re: small puzzle

2014-04-24 Thread John SJ Anderson
On Thu, Apr 24, 2014 at 8:40 PM, Harry Putnam wrote: > my $dir2sr = @{[shift]}; This shifts an element off @ARGV, makes an array reference containing a single element (the value that was just shifted off), then deferences that arrayref to create an array (which still contains a single element, t

Re: Test::More is_deeply failed data

2014-02-11 Thread John SJ Anderson
On Tue, Feb 11, 2014 at 10:17 AM, shawn wilson wrote: > Is there a way to see the data difference when is_deeply fails? So, with this code: #! perl use Test::More; my $a = { foo => {bar => { baz => 'bargle' }}}; my $b = { foo => {baz => { bar => 'bargle' }}}; is_deeply( $a , $b ); done_testi

Re: constant in object

2014-02-10 Thread John SJ Anderson
On Mon, Feb 10, 2014 at 10:07 PM, shawn wilson wrote: > which I still don't see why this is bad? In "classic" object-oriented programming, object constructors -- which is what new() is in your class -- are always class methods. Calling 'new()' as an object method doesn't make any sense. Further

Re: Package version numbers

2014-01-14 Thread John SJ Anderson
> Thanks for the test, John. In the book's example, they have: > > use v5.10; > > so I thought I was new enough, but maybe not. http://use.perl.org/use.perl.org/articles/10/04/13/1953252.shtml also notes it as a new feature in 5.12. I'm sure the authors regret the typo. ;^) j. -- To

Re: Package version numbers

2014-01-14 Thread John SJ Anderson
On Tue, Jan 14, 2014 at 2:50 PM, SSC_perl wrote: > I'm trying to number packages the way it's written about on page 406 > of Programming Perl, 4th ed., e.g. > > package Emailer 1.01; > > However, when I do that, I get the following error: > > syntax error at ss_files/Emailer.pm line 1, ne

Re: DBD::Pg::st execute failed: execute called with an unbound placeholder

2013-12-11 Thread John SJ Anderson
On Wed, Dec 11, 2013 at 1:56 AM, Lars Noodén wrote: > my $sth = $dbh->prepare("delete from sessions where \ > current_timestamp - time > interval ?"); > > $sth->execute( $interval ); > > > What mistake is there causing the error? I can use a similar line with > a placeholder for a SELECT sql s

Re: Need explanation of expression

2013-11-18 Thread John SJ Anderson
On Mon, Nov 18, 2013 at 12:34 PM, John W. Krahn wrote: >> Also, is there something in the perl man pages about it? > > > Yes. You probably want perlop? Specifically, http://perldoc.perl.org/perlop.html#Conditional-Operator '?:' is otherwise known as the 'ternary conditional operator' -

Re: Testing a standalone script

2013-10-29 Thread John SJ Anderson
On Tue, Oct 29, 2013 at 11:02 AM, Manfred Lotz wrote: > This is exactly what I don't want to do. IMHO, for testing modules or > applications this is the way to go. However, for a standalone script > I'd like to have my test data inside the script itself. Well, you could add some input values and

Re: how to build a mailing list for Perl beginners

2013-10-26 Thread John SJ Anderson
On Sat, Oct 26, 2013 at 9:09 PM, wrote: > See the subject line It's really hard to interpret what you mean here, because ... you're posting to one. j. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: meta on OT posts

2013-10-26 Thread John SJ Anderson
On Sat, Oct 26, 2013 at 4:00 PM, David Christensen wrote: > 1. I'm interested in hearing opinions about other computer programming > languages and how they compare to Perl. Not on topic for this list. > 5. "You get more flies with sugar than you do with salt." This list is > supposed to be f

Re: hello from a newbie

2013-10-26 Thread John SJ Anderson
On Sat, Oct 26, 2013 at 2:24 PM, wrote: > I'm a newbie of programming and want to know the differences between these 2 > tools. I believe every newbie is curious to know the truth instead of some > junk posts online. > > What's the big deal to compare these 2 languages? Simply because this is a

Re: hello from a newbie

2013-10-26 Thread John SJ Anderson
On Sat, Oct 26, 2013 at 2:18 PM, Shawn H Corey wrote: > There are many things in it, like "Don't use the two-argument open," > which are relevant. part of the problem is that many of the older Perl > sources are out of date. PBP does tell what to use instead. All of the Perl books that have been

Re: hello from a newbie

2013-10-26 Thread John SJ Anderson
On Sat, Oct 26, 2013 at 9:08 AM, Mayuresh Kathe wrote: > A pseudo-tangential question; > Under the platform, I could do "apt-get install perltidy" to install > perltidy, but there's nothing similar for perlcritic. > Is perlcritic packaged under a different name? or is there a different > way to i

Re: hello from a newbie

2013-10-26 Thread John SJ Anderson
Hi. This is the _Perl_ beginners list. Python advocacy is very much off-topic. If you'd like to stay and talk about Perl programming, please do. If you'd like to advocate for Python, please take that conversation some where else. thanks, john, the perl-beginners list mom. On Sat, Oct 26, 2013 at

Re: Higher Order Perl support

2013-10-22 Thread John SJ Anderson
Hi - MJD indicated to me that he's had some tech difficulties, but things should be back online in a day or so -- see https://twitter.com/genehack/status/392897275271184384 for our conversation. chrs, john. On Tue, Oct 22, 2013 at 4:48 PM, David Christensen wrote: > beginners: > > I'm re-readi

Re: Need help with a programming problem

2013-10-05 Thread John SJ Anderson
hat you are both the author of the words and proprietor > of the site in far less verbiage. > > Similarly, where Uri writes > >> i do recommend you try to use File::Slurp > > all that I see is necessary is > >> i do recommend you try my own File::Slurp module > >

Re: Need help with a programming problem

2013-10-02 Thread John SJ Anderson
On Wed, Oct 2, 2013 at 10:22 AM, Peter Holsberg wrote: > Hi, > > I have tried to do this for hours but it looks like it is just too > difficult for me. You should maybe show the code you have, and we can help you with that. If you've worked for "hours", you must have something to show. j. -- T

Re: Programming Help Needed

2013-10-01 Thread John SJ Anderson
jobs.perl.org is the definitive place to post Perl jobs. good luck in your search. On Tue, Oct 1, 2013 at 2:37 PM, Angela Barone wrote: > Hello, > > I don't know if this type of subject is off limits here, so if it is, > please let me know where I can post this request. > > My

Re: Take input from user thru another application

2013-09-29 Thread John SJ Anderson
On Sun, Sep 29, 2013 at 3:47 PM, Harry Putnam wrote: > I use emacs/gnus as my newsreader. > > In gnus you can select msgs and then run shell cmds on that selected > content. > > I want to know how to take user input during that action. I think the best way to approach this is to collect the user

Re: raise an error

2013-09-25 Thread John SJ Anderson
On Wed, Sep 25, 2013 at 6:45 PM, Ken Peng wrote: > Does perl have a way to raise a error in module/class then from caller use > Try::Tiny etc to catch them? Thanks. You can throw an exception with 'die()' -- see 'perldoc -f die' for calling syntax. chrs, john. -- To unsubscribe, e-mail: beginn

Re: Parsing a email attachment over SSL

2013-07-29 Thread John SJ Anderson
(a) Your subject line doesn't seem to have anything to do with the question in your message. (b) The documentation for Mail::IMAPClient says that the search() method arguments are appended to an IMAP SEARCH command. I think if you look at the relevent section of the IMAP RFC (https://tools.ietf.or

Re: Parsing Data

2013-07-23 Thread John SJ Anderson
Okay, enough. This thread derail ends now. Shlomi, Rob, if you feel you need to continue this discussion in front of witnesses, feel free to continue CCing me on your private discussion -- but leave perl-beginners out of it. This type of nitpicking and sniping back and forth does not foster a welc

Re: Email::Sender on Centos 6

2013-07-18 Thread John SJ Anderson
On Wed, Jul 17, 2013 at 5:55 PM, Dermot wrote: > I have noticed (correct me if I'm wrong) that Email::Sender depends on > Moose. You're wrong. 8^) It does depend on Moo, however: http://deps.cpantesters.org/?module=Email%3A%3ASender&perl=latest&os=Linux > I'm not aware of any CentOS 5 or 6 iss

Re: Is there a way to generate HTML reports?

2013-07-07 Thread John SJ Anderson
On Sat, Jul 6, 2013 at 7:43 AM, *Shaji Kalidasan* wrote: > My goal is to create good looking HTML reports. Please suggest/advice. N'th-ing the suggestion that you look at a templating system. My current go-to in this area is Text::Xslate (https://metacpan.org/release/Text-Xslate), but there are

Re: accessing variables in subroutines

2013-06-27 Thread John SJ Anderson
> That is rude. The reason this list exists is to help people, not to > tell them to go away. No wonder Perl is not a popular language. Agreed. Dr. Ruud, that was uncalled for. You're not obligated to respond to posters, and if that's the best response you have, not responding would be a better ch

Re: Getting Started.

2013-06-26 Thread John SJ Anderson
Hi Frank. Based on your "Dear all" salutation, I suspect you meant to send this to the whole list, not just me -- so I'm replying to the whole list. IMO the best Perl "beginner" book at the moment is Curtis "Ovid" Poe's "Beginning Perl". chrs, john. On Wed, Jun 26, 2013 at 4:02 AM, Frank Vino

Re: last

2013-06-25 Thread John SJ Anderson
On Tue, Jun 25, 2013 at 9:23 AM, shawn wilson wrote: > > On Jun 25, 2013 3:11 AM, "lee" wrote: >> I'm not sure what you mean --- other programming languages I know don't >> have two different kinds of 'if's and the irregularities involved with >> that. > How does perl have "different kinds of i

Re: begining

2013-05-19 Thread John SJ Anderson
On Sun, May 19, 2013 at 9:10 AM, Rahim Fakir wrote: > Can someone tell me or give a adress to programs like hello world or > similar, for practice. > Iam beging practice programming, and bought a book of perl, but i need > program to practice can someone give me a hand. > > You haven't really aske

Re: how to retrieve the keys from hash in the sequence in which data is inserted

2013-04-23 Thread John SJ Anderson
On Tue, Apr 23, 2013 at 5:31 AM, kavita kulkarni wrote: > The values I have stored in the hash should essentially be retrieved in > order, so normal retrieval is not a correct solution for me. > > I have tried using IxHash, but it takes much longer execution time than > expected. Any other solutio

Re: Exposed Email Addresses

2013-03-29 Thread John SJ Anderson
Hi, List Mom here. This conversation is pretty far over the "off-topic" line -- there's nothing in this thread about Perl. Yes, if you post to this list, your email address may be exposed on the Internet. If that's not an acceptable risk for you, you'll have to find another forum for your Perl beg

Re: CPAN and AI::Prolog

2013-03-13 Thread John SJ Anderson
On Wed, Mar 13, 2013 at 5:18 AM, John Sampson wrote: > Hello - > > I installed Strawberry Prolog on Windows 7 and tried to install AI::Prolog > from the CPAN. I assume you mean "Strawberry Perl". > As far as I can see from the slew of messages this failed due to lack of > software packages > on

Re: large files

2013-03-05 Thread John SJ Anderson
On Tue, Mar 5, 2013 at 12:41 PM, Chris Stinemetz wrote: > Hello List, > > I am working on a script to parse large files, by large I mean 4 million > line+ in length and when splitting on the delimiter ( ; ) there are close > to 300 fields per record, but I am only interested in the first 44. Cons

Re: Selling Perl Code

2013-02-20 Thread John SJ Anderson
y that this is off topic for the Perl Beginners list. I wish I could recommend another more appropriate mailing list, but I can't. If anybody wishes to respond to this, please take it off list. thanks, john - aka the perl-beginners moderator -- John SJ Anderson // geneh...@genehack.org

Re: obfuscating code

2013-02-12 Thread John SJ Anderson
On Feb 12, 2013, at 3:33 PM, Jim Gibson wrote: > > On Feb 12, 2013, at 3:18 PM, John SJ Anderson wrote: > >> >> There's nothing idiomatic about that. I'd write that code as: >> >> # do whatever needed to get filename out of $_ into $filename her

Re: obfuscating code

2013-02-12 Thread John SJ Anderson
s code is to > deploy it in a PAR file--how hard are those to unwrap? Does Perl have the > equivalent of Python bytecode files, i.e. pyc, that are obfuscated? If not, > the OP's options may be limited. No such critter in Perl. j. -- John SJ Anderson // geneh...@genehack.org -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: obfuscating code

2013-02-12 Thread John SJ Anderson
t;Perl is a write-only language" perception wasn't too amused either. > As a systems admin, i've had to "decipher" my share of perl, > and while it "can" be written great, it "can" also be written poorly. Which makes Perl like, oh, every other progr

Re: obfuscating code

2013-02-12 Thread John SJ Anderson
On Tue, Feb 12, 2013 at 10:39 AM, jbiskofski wrote: > I understand that obfuscating code is not a real detriment to a seriously > motivated knowledgeable hacker. Yet I still think some security is > preferable to no security at all. Also I wish this problem could be > attacked somehow other than s

Re: obfuscating code

2013-02-12 Thread John SJ Anderson
>> On Feb 12, 2013 7:05 PM, "Rajeev Prasad" wrote: >>> what is the advice just for obfuscating code? platform is solaris. I think you're getting the idea, at this point, that this is considered a bad idea, regardless of what platform you're targeting. You may have an actual issue, but unless yo

Re: Help on perl core dump

2013-02-11 Thread John SJ Anderson
On Mon, Feb 11, 2013 at 1:23 AM, karthik sankaran wrote: > warning: .dynamic section for "/usr/local/mysql/lib/libmysqlclient.so.18" is > not at the expected address (wrong library or version mismatch?) You have a problem with your MySQL installation. The most probable cause is that you built DBD

Re: Help on perl core dump

2013-01-30 Thread John SJ Anderson
On Wed, Jan 30, 2013 at 9:17 PM, karthik sankaran wrote: > I compiled it from the source and Yes , in installed all the necessary > modules again. > > this is the latest info from the gdb after upgrading to the perl version > 16, subversion 2 (v5.16.2) built for x86_64-linux > > Program terminated

Re: [FWD: Preprocessor for writing .SQL files for Oracle PLSQL and MS TSQL]

2013-01-29 Thread John SJ Anderson
On Tue, Jan 29, 2013 at 10:42 AM, wrote: > Hmmm OK, I forgot to mention the stored procedures in addition to the > DML and DDL. It looks like these DBIx::Class::Schema will for for DDL only. > Will they work for DML and stored procedures too? To the extent that what you mean by 'DML' is real

Re: Abbreviating ordinals only in the middle of an address

2013-01-29 Thread John SJ Anderson
On Jan 29, 2013, at 8:19 AM, Tushar N K Jain wrote: > I am not an expert in Perl, but wouldn't > > $test_data =~ s/north/N./gi; > > be sufficient? And what's the output of that when somebody lives on 'South Northgate Lane'? j. -- John SJ Anderson

Re: [FWD: Preprocessor for writing .SQL files for Oracle PLSQL and MS TSQL]

2013-01-29 Thread John SJ Anderson
On Tue, Jan 29, 2013 at 7:44 AM, wrote: > Anyone have any suggestions to make it easier? > Can anyone help me get started? How about expressing your schema as a DBIx::Class::Schema[1] and then using DBIx::Class::Schema::Loader[2] to dump the different DDL dialects that you need? 1: https://met

Re: Help on perl core dump

2013-01-28 Thread John SJ Anderson
On Mon, Jan 28, 2013 at 9:27 PM, karthik sankaran wrote: > I am seeing a lot of core dump files created by perl. The perl-beginners list isn't the most appropriate forum for this issue -- dealing with the interpreter core dumping and how to troubleshoot that particular situation is well out of "b

Re: character setts in a regexp

2013-01-14 Thread John SJ Anderson
On Fri, Jan 11, 2013 at 2:01 PM, Christer Palm wrote: > Do you have suggestions on this character issue? Is it possible to determine > the character set of a text efficiently? Is it other ways to solve the > problem? As far as other ways to solve the problem, my suggestion would be to not use r

Re: Need a Perl Book for Beginner

2012-12-04 Thread John SJ Anderson
alogy is: _Beginning Perl_ : _Programming Perl :: K&R : _The Standard C Library_ by PJ Plauger _Programming Perl_ will teach you a lot, but it's IMO more of a comprehensive reference work than something designed to teach the language. N'th-ing Beginning Perl and Modern Perl, FWIW.

Re: Attempting to be more perl-ish

2012-11-09 Thread John SJ Anderson
ething, explain what you're trying to achieve" type deals. What are you actually trying to do here? j. -- John SJ Anderson // geneh...@genehack.org -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Recommendations for emacs customizations for editing Perl

2012-09-11 Thread John SJ Anderson
> > > > There's also my Emacs config: https://github.com/genehack/emacs (the Perl > > stuff is mostly in etc/perl.el) > > Okay, this looks good but I don't know how to install it. I have a .emacs > file and a .emacs.d directory in my home directory; you have an init.el file > and bin, etc, and

Re: Recommendations for emacs customizations for editing Perl

2012-09-11 Thread John SJ Anderson
On Tuesday, September 11, 2012 at 9:08 PM, Vic Sage wrote: > I'd like to hear some recommendations from this list for customizations to > emacs for coding Perl. > > One seemingly respected site, http://emacswiki.org/emacs/PerlLanguage, has a > lot of links but unfortunately some are pretty date

  1   2   >