Dmitry Karasik
- About: I blog about Perl.
Recent Actions
-
Posted twinkle twinkle catalyst to Dmitry Karasik
I'm developing under Catalyst and am using the Catalyst test server that is running on my local machine and is reloading every time I'm saving changes to the source tree. This is a cool feature, but I have to wait in front of the browser until the application is loaded full and can answer http…
-
Commented on A brief introduction to Prima
I'd also like to thank Fabio for his efforts! I myself lack the style to present material easy enough for the beginners, so if this series will continue that would be great...
-
Posted Re: Asynchronous HTTP Requests in Perl Using Whatever to Dmitry Karasik
In addition to asynchronicity I couldn't stop and wrote this:
https://www.bing.com … -
Commented on Re: What if we could drop archives into @INC?
@Chad Thanks for the effort, I remember I tried that thing with @INC some years ago, when it wasn't established yet, and didn't work the way I hoped. It's great to know that it is solid now....
-
Commented on Re: What if we could drop archives into @INC?
@Steffen: that's interesting! is this the branch you're referring to? http://svn.openfoundry.org/par/branches/fastio/ I can't find anything related there, sorry...
-
Posted Re: What if we could drop archives into @INC? to Dmitry Karasik
An article written by brian d foy What if we could drop archives into @INC? got me thinking. Indeed, I've been burned myself by PAR, which is a great instrument, but I don't like that it…
-
Commented on On defined(@array) and defined(%hash)
My 5 cents here: I personally couldn't make any use of discussions on p5p, and my very subjective view is that Reini couldn't either, therefore the rant. Imagine you're trying to get your point through, cannot, feel ignored, and venting...
-
Commented on Your Perl-driven cyborgs can soon recognize objects
Awesome! Any chance to get it working together with PDL?...
-
Commented on What if we could drop archives into @INC?
I've deployed standalone perl apps and missed the feature greatly back then. It was rather annoying and tedious to hand-roll a self-unpacking perl directory with all modules and what not. I've tried PAR, it can make a one-contains-all exe file,...
-
Commented on Those TIFF files
You're welcome to try the latest Prima on these files use Prima; Prima::Image->load('a.tif')->save('a.jpg'); or even send the worst ones to me -- i'm keeping a small collection of tiff pecularities ;)...
-
Posted Those TIFF files to Dmitry Karasik
While releasing and compiling Prima 1.33 for 5 different perls, I'm taking a moment to send a couple of warm ones towards the TIFF specification. Prima originally was written to be used in (among other) software for microscopy recordings, and…
-
Posted udp_server with IO::Lambda to Dmitry Karasik
I'm turning again to my module IO::Lambda, which I think, doesn't get the resonance it could have. I've seen AnyEvent's tcp_server, which is great and easy to use, and was reluctant to add one to IO::Lambda, because it's so easy.…
-
Commented on ASUS EPU-6 utility hacked with Win32::GuiTest
@all: sorry didn't answer, only now I noted that there _are_ some comments. I wonder if MovableType can ping me each time a comment is made....
-
Posted ASUS EPU-6 utility hacked with Win32::GuiTest to Dmitry Karasik
Some time ago I've bought a windows desktop with ASUS EPU6 because I wanted my desktop to be extra quiet. It is quiet indeed, but it's done by a special GUI utility, where one should compromise first between noise and CPU speed. That utility runs on startup, remembers its last setting, and…
Comment Threads
-
zby commented on
On defined(@array) and defined(%hash)
One major source of this might be Advanced Perl Programming with the following:
Example 6.2: Dumping All Symbols in a Package
package DUMPVAR;
sub dumpvar {
my ($packageName) = @_;
local (*alias); # a local typeglob
# We want to get access to the stash corresponding to the package
# name
*stash = *{"${packageName}::"}; # Now %stash is the symbol table
$, = " "; # Output separator for print
# Iterate through the symbol table, which contains glob… -
kharayo commented on
A brief introduction to Prima
I only find out about Prima recently. Love it! Does any body know tutorial on layout. I read the PDF manual but can not figure out the layout positioning for buttons, listbox..etc
-
James commented on
A brief introduction to Prima
Any chance of AnyEvent::Impl::Prima or IO::Async::Loop::Prima from the author?
-
stevemadden commented on
On defined(@array) and defined(%hash)
Hi Reini, hi all, very sorry to jump in that way, but even after reading this articles many times I can't find a way to solve my pb with defined.
with perl 5.10 , defined does the trick, but now I updated to 5.16, my script is broken.
My script take a hash of hash and dump its archite… -
gonzo commented on
On defined(@array) and defined(%hash)
blogs.perl.org is a blogging platform, no support forum. You should generally consider to ask questions on other platforms, like stackoverflow or perlmonks.
To determine of what type a reference is (in Perl5 all nested data structures consist of references) you need to use the "ref" builtin (see perldoc -f ref or here: http://perldoc.perl.org/functions/ref.html ).
I took the liberty of rewriting your code a bit, so it conforms to recent best practices a little more:
sub dump_hash {
my ($hashn…
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.