The Perl Conference 2017 in DC (aka YAPC::NA 2017) - Call for Speakers

2017-03-02 Thread Brock Wilcox
utorials once we have it finalized. Keep an eye on http://www.perlconference.us/, follow @PerlConferences on the twitter, or ask me any questions here (or directly) that you might have! --Brock (one of the organizers) @awwaiid / awwa...@thelackthereof.org

Re: having trouble understanding the built-in Perl sort with regards to mixed numbers and strings

2016-06-17 Thread Brock Wilcox
In this very particular case you should consider turning off the warning, maybe limiting it to the block. On Jun 17, 2016 5:42 PM, "Kenneth Wolcott" wrote: > On Fri, Jun 17, 2016 at 2:33 PM, Kenneth Wolcott > wrote: > > Hi; > > > > I'm having trouble understanding the built-in Perl sort with r

Re: FFI::Library issues

2016-06-16 Thread Brock Wilcox
I recommend looking at FFI::Platypus (which is referenced as preferable in the FFI::Library docs) - it works really well and is being actively developed and maintained. What do you mean by crushed? On Jun 16, 2016 05:55, "Ops Cloud" wrote: > > hello, > > I tried to access some C library (such

Re: Perl sort for reverse numeric if numbers and text are in a string, numbers first

2016-03-09 Thread Brock Wilcox
g to a number using a thing from Scalar::Util. References: http://perlmaven.com/argument-isnt-numeric-in-numeric http://perlmaven.com/automatic-value-conversion-or-casting-in-perl --Brock On Tue, Mar 8, 2016 at 4:29 PM, Kenneth Wolcott wrote: > Hi; > > How do I call the built-in Perl so

Re: carp and cgi warnings

2016-02-13 Thread Brock Wilcox
Greetings! Could you give an example of these warnings, and even better some minimal code that generates them? Thanks, --Brock On Feb 13, 2016 8:19 AM, "lee" wrote: > Hi, > > is there a way to disable the annoying warnings about carp and cgi which > cgi programs write t

Re: sure would be nice if Perl had trace command built-in

2015-12-07 Thread Brock Wilcox
I don't know. But I think that worst case you can just download the single file from this library and add it to your application directly. It requires no compilation or anything. https://metacpan.org/source/MJD/Devel-Trace-0.12/Trace.pm --Brock On Mon, Dec 7, 2015 at 9:39 PM, Kenneth Wo

Re: sure would be nice if Perl had trace command built-in

2015-12-07 Thread Brock Wilcox
Give devel::trace or devel::tracemore a try :) On Dec 7, 2015 21:32, "Kenneth Wolcott" wrote: > Hi; > > I've inherited a lot of Perl [mostly ActiveState] (and bash) scripts > were the former writers and maintainers did not use "use strict" and > "use warnings" and have other "less than Best Pra

Re: Perl executable problem...

2015-11-12 Thread Brock Wilcox
Greetings! Could you give us the text of your script, and maybe a screens hot of you running it? One guess is that you aren't providing the script name as expected, so perl is waiting for input. On Nov 12, 2015 08:54, "Rui Fernandes" wrote: > > > > > > > *Hi,I'm having a problem compiling a perl

Re: perl6

2015-10-20 Thread Brock Wilcox
interesting, etc. But I think the above is essential context for any Perl6 conversation, and illustrates how it must be fairly separate from conversations about Perl5. --Brock P.S. Another resource in addition to IRC (which is probably the best place to discuss Perl6) -- there is also a perl6-use

Re: Good books to study perl interpreter

2015-03-30 Thread Brock Wilcox
It'd be neat if there was an equivalent to "Ruby Under A Microscope" for Perl5. That book is FANTASTIC at exploring the internals of the YARV (c-ruby) data structures and general inner-workings. --Brock On Mon, Mar 30, 2015 at 1:13 PM, Hao Wu wrote: > Hi, rakesh, > &g

Re: An issue of Scope that I do not understand

2015-02-27 Thread Brock Wilcox
I'm afraid a bit more context is needed to identify the problem. Could you post your entire bit of code into a gist or pastebin or something for us to see? On Feb 27, 2015 9:52 PM, "Martin G. McCormick" < mar...@server1.shellworld.net> wrote: > I put together an anonymous subroutine which

Re: Dynamically created perl script

2013-03-19 Thread Brock
standard input stream of data to work on. Just something for you to contemplate :) --Brock -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: hash help !

2012-11-14 Thread Brock
That is the content of your file, with those ' => ' and everything? You should describe what you want the resulting %hash to contain, using the example file you provided. --Brock On 2012.11.14.17.05, jet speed wrote: > Hi > Is there a way, i can build an %hash from a file a

Re: Unfamiliar calling of a subroutine

2012-06-07 Thread Brock
the SurfDB::split_line sub. Finally to your last question, how is this different than just calling the package::sub directly? With a method call the instance variable, in this case $catalog, always gets passed as the first parameter to the method. Usually people name it $self. The same thing ha

Re: Comparing two arrays

2012-06-06 Thread Brock
ist of all the questions. perldoc.perl.org is another interface you can try for similar results. --Brock -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: help with Spreadsheet::WriteExcel please

2012-06-05 Thread Brock
and then increment it each after you do the above writes. So: my $write_row = 1; for my $row (1..$row_max){ # ... $worksheet->write ($write_row, 0, "$valA"); $worksheet->write ($write_row, 1, "$valB"); $write_row++; # ... } See if that helps,

beginners@perl.org

2012-03-07 Thread Brock
Greetings! I think you mean 'substr' instead of 'subst'. --Brock On 2012.03.08.00.41, lina wrote: > Hi, > > $ ./substr_accessing_examples.pl > Undefined subroutine &main::subst called at > ./substr_accessing_examples.pl line 15. > > #!/usr

Re: stuck and need some direction

2011-10-15 Thread Brock
++; # Cell 20, CDM HEH But really I am probably speaking gibberish until you provide some sample output. Especially it would be good to have other test cases -- like what other cells would look like, or if there could be non-HEH CDMs. --Brock -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: stuck and need some direction

2011-10-15 Thread Brock
DM: $cdm\n"; sub getCell { my ($input_line) = @_; # gets the $input_line parameter if($input_line =~ /CELL (\d+) CDM (\d+),/) { # We found something that looks like "Cell: XXX CDM YYY," # These are in parenthesis, so go into $1 and $2 my $cell = $1; my $cdm = $2; return ($cell, $cdm); # I could have done: return ($1, $2) } else { die "BAD LINE: $input_line\n"; } } And now I get: Cell: 20 CDM: 1 This will be a bit more complex if you need to extract data from other lines as well. --Brock -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/