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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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/
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,
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
++; # 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/
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/
19 matches
Mail list logo