[32495] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3760 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Aug 17 18:09:22 2012

Date: Fri, 17 Aug 2012 15:09:06 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Fri, 17 Aug 2012     Volume: 11 Number: 3760

Today's topics:
        magic installation woes [OT] (was: using cpan effective <rweikusat@mssgmbh.com>
        number of starting tabs <nospam.gravitalsun@hotmail.com.nospam>
    Re: number of starting tabs <glex_no-spam@qwest-spam-no.invalid>
    Re: number of starting tabs <rweikusat@mssgmbh.com>
    Re: number of starting tabs <nospam.gravitalsun@hotmail.com.nospam>
    Re: number of starting tabs <ben@morrow.me.uk>
    Re: number of starting tabs charley%pulsenet.com@gtempaccount.com
    Re: number of starting tabs <rweikusat@mssgmbh.com>
    Re: number of starting tabs (Tim McDaniel)
    Re: number of starting tabs <rweikusat@mssgmbh.com>
    Re: number of starting tabs <rweikusat@mssgmbh.com>
    Re: number of starting tabs <ben@morrow.me.uk>
    Re: number of starting tabs (Tim McDaniel)
    Re: number of starting tabs <rweikusat@mssgmbh.com>
    Re: number of starting tabs <ben@morrow.me.uk>
    Re: number of starting tabs <ben@morrow.me.uk>
    Re: number of starting tabs <rweikusat@mssgmbh.com>
    Re: number of starting tabs <ben@morrow.me.uk>
    Re: Pause until external program exits with success? <glex_no-spam@qwest-spam-no.invalid>
    Re: Perl 6 (was Re: Windows: Rakudo-Star Perl6 now avai <dilbert1999@gmail.com>
    Re: using cpan effectively <cal@example.invalid>
    Re: using cpan effectively <mvdwege@mail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Fri, 17 Aug 2012 12:04:51 +0100
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: magic installation woes [OT] (was: using cpan effectively)
Message-Id: <87boi9n5ik.fsf_-_@sapphire.mobileactivedefense.com>

Cal Dershowitz <cal@example.invalid> writes:
> On 08/15/2012 01:17 AM, Mart van de Wege wrote:
>> install ImageMagick
>
> [x-posted to alt.os.linux.ubuntu]
>
> I tried hard today but failed.  I understand that people don't want to
> see logs.  I mean other people, usually the barkey ones.  I don't find
> it unpleasant to read a log.
>
> Q1)  Can anybody who has Imagemagick.h in a place that does something
> useful tell me where it is on his/her installation?

First, have you considered to install the Ubuntu package for the
module in question? This should take care of installing any
depedencies automatically and you won't even need the build
dependencies. The Debian package is called 'perlmagic', cf

,----
| [rw@sapphire]~ $sudo apt-cache search magick | grep perl
| libgraphics-magick-perl - format-independent image processing - perl interface
| perlmagick - Perl interface to the ImageMagick graphics routines
| libchart-gnuplot-perl - module for generating two- and three-dimensional plots
| libimage-size-perl - module for determining image sizes in several common formats
`----

It is generally a better idea to use software packaged by the
distribution insofar available. You can spare yourself a lot of
trouble if you don't use any 'upstream sources' directly except if you
need specific features (or fixes) not yet available elsewhere or if
you want or need to use them as base for independent developments (eg,
the DBD::Pg I'm presenty using as been significantly changed by me
because I needed working support for asychronous database interactions
and more differentiated error handling than die("It failed!"), two
things of no particular concern to the people who maintain the public
version).

Assuming you still want to install the CPAN-version, the easiest way
to deal with its build depedencies is to use the packaged versions for
these. Since you want to compile something which uses this library,
the library package alone won't do, you'll need the so-called
development package as well. Again using apt-cache to search for
likely suspects yields

,----
| [rw@sapphire]~ $sudo apt-cache search magick | grep lib | grep -- -dev
| graphicsmagick-libmagick-dev-compat - image processing librariesproviding ImageMagick interface
| libgraphicsmagick++1-dev - format-independent image processing - C++ development files
| libgraphicsmagick1-dev - format-independent image processing - C development files
| libmagick++-dev - object-oriented C++ interface to ImageMagick - development files
| libmagickcore-dev - low-level image manipulation library - development files
| libmagickwand-dev - image manipulation library - development files
| libvips-dev - image processing system good for very large images (dev)
`----

Since you were missing a library named MagickCore and a header of the
same name, the candidate suggesting itself would be libmagickcore-dev.
You can install that with

apt-get install libmagickcore-dev

This will install a bunch of other stuff the package maintainer
considered to be necessary for using this package (which might or
might not be true) or thought you should really be using for whatever
reason (aka 'avahi-daemon' ...) but unless you're seriously short of
diskspace or want/ need to control every detail, that's not worth
bothering with.

I usually disable automatic installation of 'recommended other
packages' because I grew tired of deinstalling the avahi- and
dbus-daemons over and over again :->. This can be done by creating a
file /etc/apt/apt.conf with the following content (or by adding it to
an existing apt.conf file)

APT {
        Install-Recommends "false";
};


------------------------------

Date: Thu, 16 Aug 2012 23:07:03 +0300
From: "George Mpouras" <nospam.gravitalsun@hotmail.com.nospam>
Subject: number of starting tabs
Message-Id: <k0jjt8$1rur$1@news.ntua.gr>

I want to count the number of staring tabs of a string. Is there any better 
way than

my $var = '        foo    ';
(my $tabs = $var) =~s/^(\t*).*$/$1/; $tabs = length $tabs;
print $tabs;   # 2 



------------------------------

Date: Thu, 16 Aug 2012 15:51:29 -0500
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: number of starting tabs
Message-Id: <502d5d51$0$75676$815e3792@news.qwest.net>

On 08/16/12 15:07, George Mpouras wrote:
> I want to count the number of staring tabs of a string. Is there any
> better way than
>
> my $var = ' foo ';
> (my $tabs = $var) =~s/^(\t*).*$/$1/; $tabs = length $tabs;
> print $tabs; # 2

Avoid doing a substitute/replace and just capture them:

my ( $tabs ) = $var =~ /^(\t+)/;
print "Number of tabs:", length( $tabs ), "\n";


------------------------------

Date: Thu, 16 Aug 2012 21:55:49 +0100
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: Re: number of starting tabs
Message-Id: <87a9xu7e0a.fsf@sapphire.mobileactivedefense.com>

"George Mpouras" <nospam.gravitalsun@hotmail.com.nospam> writes:
> I want to count the number of staring tabs of a string. Is there any
> better way than
>
> my $var = '        foo    ';
> (my $tabs = $var) =~s/^(\t*).*$/$1/; $tabs = length $tabs;
> print $tabs;   # 2 

The code below prints the number of leading tabs in the first
positional argument ($ARGV[0]), based on using the @-array

----------
$tabs = 0;
$ARGV[0] =~ /[^\t]/ and $tabs = $-[0];

print("$tabs starting tabs\n");



------------------------------

Date: Fri, 17 Aug 2012 00:32:52 +0300
From: "George Mpouras" <nospam.gravitalsun@hotmail.com.nospam>
Subject: Re: number of starting tabs
Message-Id: <k0jou6$2m29$1@news.ntua.gr>


$tabs = 0;
$ARGV[0] =~ /[^\t]/ and $tabs = $-[0];

print("$tabs starting tabs\n");


this is impressive.


------------------------------

Date: Thu, 16 Aug 2012 22:51:52 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: number of starting tabs
Message-Id: <ok60g9-fjq.ln1@anubis.morrow.me.uk>


Quoth "George Mpouras" <nospam.gravitalsun@hotmail.com.nospam>:
> I want to count the number of staring tabs of a string. Is there any better 
> way than
> 
> my $var = '        foo    ';
> (my $tabs = $var) =~s/^(\t*).*$/$1/; $tabs = length $tabs;
> print $tabs;   # 2 

    my $tabs = () = $var =~ /\G\t/g;

Ben



------------------------------

Date: Thu, 16 Aug 2012 17:41:16 -0700 (PDT)
From: charley%pulsenet.com@gtempaccount.com
Subject: Re: number of starting tabs
Message-Id: <856ae0de-7b98-42ff-a02d-347f9ee08f1c@googlegroups.com>

On Thursday, August 16, 2012 4:07:03 PM UTC-4, George Mpouras wrote:
> I want to count the number of staring tabs of a string. Is there any better 
> 
> way than
> 
> 
> 
> my $var = '        foo    ';
> 
> (my $tabs = $var) =~s/^(\t*).*$/$1/; $tabs = length $tabs;
> 
> print $tabs;   # 2

In addition to the other ways, here is a way to do it also.

my $var  = "				four tabs";
my $tabs = $var =~ /^\t+/ ? $+[0] : 0;

Chris


------------------------------

Date: Fri, 17 Aug 2012 12:22:08 +0100
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: Re: number of starting tabs
Message-Id: <877gsxn4pr.fsf@sapphire.mobileactivedefense.com>

"George Mpouras" <nospam.gravitalsun@hotmail.com.nospam> writes:
> $tabs = 0;
> $ARGV[0] =~ /[^\t]/ and $tabs = $-[0];
>
> print("$tabs starting tabs\n");
>
>
> this is impressive.

It shouldn't be. I happened to know that these variables existed,
hence, I searched pervar(1) for the first which suited the intended
purpose and used it. I'm not even sure if there's a technical reason
to prefer this over the @+/ ?: based approach shown in another
posting. In compiled code, assignments are cheap and conditional
branches aren't but this might not be true for Perl (and I haven't
checked it so far).


------------------------------

Date: Fri, 17 Aug 2012 16:22:47 +0000 (UTC)
From: tmcd@panix.com (Tim McDaniel)
Subject: Re: number of starting tabs
Message-Id: <k0lr4n$cqh$1@reader1.panix.com>

In article <ok60g9-fjq.ln1@anubis.morrow.me.uk>,
Ben Morrow  <ben@morrow.me.uk> wrote:
>
>Quoth "George Mpouras" <nospam.gravitalsun@hotmail.com.nospam>:
>> I want to count the number of staring tabs of a string. Is there any better 
>> way than
>> 
>> my $var = '        foo    ';
>> (my $tabs = $var) =~s/^(\t*).*$/$1/; $tabs = length $tabs;
>> print $tabs;   # 2 
>
>    my $tabs = () = $var =~ /\G\t/g;

In perl 5.8.8 and 5.14.2, you don't need \G.  I don't understand \G,
but I think //g handles keeping matches distinct.

    my $tabs = () = $var =~ /\t/g;

Does anyone find it weird that I giggled at seeing the suggestion?
Yeah it works and the semantics are defined, but it still looks so,
uh, ....

-- 
Tim McDaniel, tmcd@panix.com


------------------------------

Date: Fri, 17 Aug 2012 17:47:49 +0100
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: Re: number of starting tabs
Message-Id: <87txw1bh3e.fsf@sapphire.mobileactivedefense.com>

tmcd@panix.com (Tim McDaniel) writes:
> In article <ok60g9-fjq.ln1@anubis.morrow.me.uk>,
> Ben Morrow  <ben@morrow.me.uk> wrote:
>>
>>Quoth "George Mpouras" <nospam.gravitalsun@hotmail.com.nospam>:
>>> I want to count the number of staring tabs of a string. Is there any better 
>>> way than
>>> 
>>> my $var = '        foo    ';
>>> (my $tabs = $var) =~s/^(\t*).*$/$1/; $tabs = length $tabs;
>>> print $tabs;   # 2 
>>
>>    my $tabs = () = $var =~ /\G\t/g;
>
> In perl 5.8.8 and 5.14.2, you don't need \G.  I don't understand \G,
> but I think //g handles keeping matches distinct.
>
>     my $tabs = () = $var =~ /\t/g;

The \G is needed because without it, the pattern will match the first
substring of tabs anywhere in $var, not just at the start. Even with
\G, it can be made to do this with using a suitable 'other global
match' in front of it:

---------------
$var = "aa\taa";

$var =~ /aa/g;
print $l = () = $var =~ /\G\t/g, "\n";
---------------

Meaning, this is not only nothing but a contorted way to make Perl to
an intermediate assignmen the matched part of the string implicitly
but additionally, the result depends on the context of the operation:
It doesn't return the length of the leading sequence of tabs but the
length of the sequence of tabs starting at the current matching
position which happens to be zero in this example. This is actually as
ineffcient as it is ugly (here supposed to mean 'a witticism existing
for the sake of itself' -- stuff like this may be entertaining when a
standup-comedian presents but it has no place in code).


------------------------------

Date: Fri, 17 Aug 2012 17:55:03 +0100
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: Re: number of starting tabs
Message-Id: <87pq6pbgrc.fsf@sapphire.mobileactivedefense.com>

Rainer Weikusat <rweikusat@mssgmbh.com> writes:

[...]

> ---------------
> $var = "aa\taa";
>
> $var =~ /aa/g;
> print $l = () = $var =~ /\G\t/g, "\n";
> ---------------

[...]

> This is actually as ineffcient as it is ugly (here supposed to mean
> 'a witticism existing for the sake of itself' -- stuff like this may
> be entertaining when a standup-comedian presents but it has no place
> in code).

Quote which has to be quoted in this context:

	Debugging is twice as hard as writing the code in the first
	place. Therefore, if you write the code as cleverly as
	possible, you are, by definition, not smart enough to debug
	it.
	[B. Kernighan, possibly paraphrased]
        


------------------------------

Date: Fri, 17 Aug 2012 19:41:42 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: number of starting tabs
Message-Id: <6sf2g9-om51.ln1@anubis.morrow.me.uk>


Quoth tmcd@panix.com:
> In article <ok60g9-fjq.ln1@anubis.morrow.me.uk>,
> Ben Morrow  <ben@morrow.me.uk> wrote:
> >
> >Quoth "George Mpouras" <nospam.gravitalsun@hotmail.com.nospam>:
> >> I want to count the number of staring tabs of a string. Is there any better 
> >> way than
> >> 
> >> my $var = '        foo    ';
> >> (my $tabs = $var) =~s/^(\t*).*$/$1/; $tabs = length $tabs;
> >> print $tabs;   # 2 
> >
> >    my $tabs = () = $var =~ /\G\t/g;
> 
> In perl 5.8.8 and 5.14.2, you don't need \G.  I don't understand \G,
> but I think //g handles keeping matches distinct.
> 
>     my $tabs = () = $var =~ /\t/g;

Distinct but not necessarily adjacent. \G is a zero-width assertion
(like ^ and $) which matches at the current pos() of the string, which
is the point where the last match ended.

In principle this ought to be preceded by pos($var) = 0 or $var =~ /^/
or something to ensure pos($var) is at the start of the string.

> Does anyone find it weird that I giggled at seeing the suggestion?
> Yeah it works and the semantics are defined, but it still looks so,
> uh, ....

Perl? :)

I would consider this to be the normal way to solve this problem in
general. For the specific case of a single-character string, /^\t*/
followed by measuring the length of the matched section (in any of the
ways already posted) is probably a better solution.

Ben



------------------------------

Date: Fri, 17 Aug 2012 19:04:14 +0000 (UTC)
From: tmcd@panix.com (Tim McDaniel)
Subject: Re: number of starting tabs
Message-Id: <k0m4je$2rj$1@reader1.panix.com>

In article <87txw1bh3e.fsf@sapphire.mobileactivedefense.com>,
Rainer Weikusat  <rweikusat@mssgmbh.com> wrote:
>tmcd@panix.com (Tim McDaniel) writes:
>> In article <ok60g9-fjq.ln1@anubis.morrow.me.uk>,
>> Ben Morrow  <ben@morrow.me.uk> wrote:
>>>
>>>Quoth "George Mpouras" <nospam.gravitalsun@hotmail.com.nospam>:
>>>> I want to count the number of staring tabs of a string. Is there any better 
>>>> way than
>>>> 
>>>> my $var = '        foo    ';
>>>> (my $tabs = $var) =~s/^(\t*).*$/$1/; $tabs = length $tabs;
>>>> print $tabs;   # 2 
>>>
>>>    my $tabs = () = $var =~ /\G\t/g;
>>
>> In perl 5.8.8 and 5.14.2, you don't need \G.  I don't understand \G,
>> but I think //g handles keeping matches distinct.
>>
>>     my $tabs = () = $var =~ /\t/g;
>
>The \G is needed because without it, the pattern will match the first
>substring of tabs anywhere in $var, not just at the start.

Actually, it would match tabs anywhere in the string.  I had
overlooked the requirement of "starting tabs" and not just "tabs".
My apologies.

-- 
Tim McDaniel, tmcd@panix.com


------------------------------

Date: Fri, 17 Aug 2012 20:15:38 +0100
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: Re: number of starting tabs
Message-Id: <87lihdba91.fsf@sapphire.mobileactivedefense.com>

Ben Morrow <ben@morrow.me.uk> writes:

[...]

> For the specific case of a single-character string, /^\t*/ followed
> by measuring the length of the matched section (in any of the ways
> already posted) is probably a better solution.

If you know the sensible solution, as this very strongly suggests, why
don't you post it?

------------
print($ARGV[0] =~ /^\t*/ && $+[0], " leading tabs\n");
------------

Instead of search for the first character which is not a tab or
searching for a non-empty sequence of leading tabs and having to
special-case 'no leading tabs' somehow in both cases, returning the length of a
possibly empty sequence of leading tabs always yields the correct
value directly.


------------------------------

Date: Fri, 17 Aug 2012 20:19:17 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: number of starting tabs
Message-Id: <l2i2g9-m461.ln1@anubis.morrow.me.uk>


Quoth Rainer Weikusat <rweikusat@mssgmbh.com>:
> tmcd@panix.com (Tim McDaniel) writes:
> > In article <ok60g9-fjq.ln1@anubis.morrow.me.uk>,
> > Ben Morrow  <ben@morrow.me.uk> wrote:
> >>
> >>    my $tabs = () = $var =~ /\G\t/g;
> >
> > In perl 5.8.8 and 5.14.2, you don't need \G.  I don't understand \G,
> > but I think //g handles keeping matches distinct.
> >
> >     my $tabs = () = $var =~ /\t/g;
> 
> The \G is needed because without it, the pattern will match the first
> substring of tabs anywhere in $var, not just at the start.

No, without \G it will match all tabs, without requiring them to be
adjacent.

> Even with
> \G, it can be made to do this with using a suitable 'other global
> match' in front of it:

This is the case with any use of //g (in list or scalar context), and is
not usually regarded as a problem. It is not specific to \G.

Perl makes extensive use of implicit iterators, and it's always
important to be aware of where they are stored and what they affect.
This could be regarded as a design bug, though much of the time it's
extremely convenient.

Ben



------------------------------

Date: Fri, 17 Aug 2012 20:26:48 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: number of starting tabs
Message-Id: <ogi2g9-m461.ln1@anubis.morrow.me.uk>


Quoth Rainer Weikusat <rweikusat@mssgmbh.com>:
> Ben Morrow <ben@morrow.me.uk> writes:
> 
> > For the specific case of a single-character string, /^\t*/ followed
> > by measuring the length of the matched section (in any of the ways
> > already posted) is probably a better solution.
> 
> If you know the sensible solution, as this very strongly suggests, why
> don't you post it?
> 
> ------------
> print($ARGV[0] =~ /^\t*/ && $+[0], " leading tabs\n");
> ------------

At least two people have already posted solutions equivalent to that; I
was looking for something more general. I would prefer

    my ($tabs) = $var =~ /^(\t*)/;
    say length $tabs;

since I try to avoid @+, @- and $N where possible, but that's purely a
matter of taste.

Ben



------------------------------

Date: Fri, 17 Aug 2012 21:33:07 +0100
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: Re: number of starting tabs
Message-Id: <87has1b6nw.fsf@sapphire.mobileactivedefense.com>

Ben Morrow <ben@morrow.me.uk> writes:
> Quoth Rainer Weikusat <rweikusat@mssgmbh.com>:
>> Ben Morrow <ben@morrow.me.uk> writes:
>> 
>> > For the specific case of a single-character string, /^\t*/ followed
>> > by measuring the length of the matched section (in any of the ways
>> > already posted) is probably a better solution.
>> 
>> If you know the sensible solution, as this very strongly suggests, why
>> don't you post it?
>> 
>> ------------
>> print($ARGV[0] =~ /^\t*/ && $+[0], " leading tabs\n");
>> ------------
>
> At least two people have already posted solutions equivalent to
> that;

At least two similar solution where posted but this one is better, as
was explained in the text you deleted.

> I was looking for something more general. I would prefer
>
>     my ($tabs) = $var =~ /^(\t*)/;
>     say length $tabs;
>
> since I try to avoid @+, @- and $N where possible, but that's purely
> a matter of taste.

That's not 'purely a matter of taste'. The following two pieces of
Perl code are equivalent insofar the final value of $tabs is
concerned:

-----
$tabs = $ARGV[0] =~ /^\t*/ && $+[0];
-----

-----
($tabs) = $ARGV[0] =~ /^(\t*)/;
$tabs = length($tabs);
-----

But they utilize different methods of calculating this value and while
the first requires perl (5.10.1) to perform nine basic operations, the
second needs fourteen, not the least because it reimplements a feature
the perl regex engine already provides in a relatively clumsy way in
Perl: There's no point in copying the substring or even just capturing
it if only the number of characters are supposed to be counted.

The 'matter of taste' doesn't matter here because this is not a work
of art. It is a set of instructions supposed to cause a computer to
perform a calculation, or, more correctly, it matters only of
aesthetic preferences trump technical considerations.


------------------------------

Date: Fri, 17 Aug 2012 22:28:26 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: number of starting tabs
Message-Id: <qkp2g9-8t61.ln1@anubis.morrow.me.uk>


Quoth Rainer Weikusat <rweikusat@mssgmbh.com>:
> Ben Morrow <ben@morrow.me.uk> writes:
> 
> > I was looking for something more general. I would prefer
> >
> >     my ($tabs) = $var =~ /^(\t*)/;
> >     say length $tabs;
> >
> > since I try to avoid @+, @- and $N where possible, but that's purely
> > a matter of taste.
> 
> That's not 'purely a matter of taste'. The following two pieces of
> Perl code are equivalent insofar the final value of $tabs is
> concerned:
> 
> -----
> $tabs = $ARGV[0] =~ /^\t*/ && $+[0];
> -----
> 
> -----
> ($tabs) = $ARGV[0] =~ /^(\t*)/;
> $tabs = length($tabs);
> -----
> 
> But they utilize different methods of calculating this value and while
> the first requires perl (5.10.1) to perform nine basic operations, the
> second needs fourteen, not the least because it reimplements a feature
> the perl regex engine already provides in a relatively clumsy way in
> Perl: There's no point in copying the substring or even just capturing
> it if only the number of characters are supposed to be counted.

As I have said many times before, if you are concerned about that level
of efficiency Perl is almost certainly the wrong language to be using in
the first place. The first rule of optimisation is 'Don't'.

> The 'matter of taste' doesn't matter here because this is not a work
> of art. It is a set of instructions supposed to cause a computer to
> perform a calculation, or, more correctly, it matters only of
> aesthetic preferences trump technical considerations.

All forms of writing, in natural or artificial languages, should be
considered a work of art at some level. (Incidentally, this is the
principle upon which the idea of copyright in computer programs is
based.) While material technical considerations are more important than
questions of aesthetics, in this case, unless the code in question is
part of an inner loop you have previously determined is causing a
significant performance problem, there is no *material* technical
difference between the two.

Ben



------------------------------

Date: Thu, 16 Aug 2012 10:07:45 -0500
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: Pause until external program exits with success?
Message-Id: <502d0cc1$0$52256$815e3792@news.qwest.net>

On 08/14/12 16:53, Cal Dershowitz wrote:
> On 08/14/2012 01:35 PM, J. Gleixner wrote:
>> On 08/14/12 13:53, Cal Dershowitz wrote:
>> [...]
>>>
>> Instead of hijacking a previous post, which doesn't have anything to
>> do with your particular question, it would be better if you would
>> post a new one with a pertinent subject and question.
>
> How is asking for the OP's source a "hijack." I don't want to start a
> new thread with this, because it's not the most important thing I'm
> working on now, and who died to leave you as Abigail van Buren to
> c.l.p.misc?

Whatever..  I'm trying to help you, before everyone starts filtering all 
of your posts because you continue to do this.

>>
>> BTW: ImageMagick (PerlMagick) can do this pretty easily.
>
> OP already posted that, so your response added ZERO new data to this
> thread.

And yours continues to lower your relevance.


My point is, What does your post asking how to resize images have to do 
with 'Pause until external program exits with success?'...



------------------------------

Date: Fri, 17 Aug 2012 11:53:18 -0700 (PDT)
From: Dilbert <dilbert1999@gmail.com>
Subject: Re: Perl 6 (was Re: Windows: Rakudo-Star Perl6 now available as *.msi)
Message-Id: <a7b1c15a-d391-4b31-956b-b0141f5946db@cf4g2000vbb.googlegroups.com>

On 14 ao=FBt, 17:56, t...@panix.com (Tim McDaniel) wrote:
> Dilbert =A0<dilbert1...@gmail.com> wrote:
> >I am a Windows user and I always wanted to run Rakudo-Star Perl 6
>
> I've certainly heard of the Perl 6 effort. =A0How's it coming in
> general? =A0As for "Rakudo-Star Perl 6" in particular, how useful is it
> -- mostly featureful or only a few? =A0production quality or buggy?

I am just a beginner perl 6 user (and an average perl 5 user), but
judging by the comments of http://rakudo.org/ I would say that "Rakudo-
Star Perl 6" is useful but not yet production quality. I don't think
it is buggy, but some features are missing, see also
http://rakudo.org/2012/07/28/rakudo-star-2012-07-released/

++ There are some key features of Perl 6 that
++ Rakudo Star does not yet handle appropriately,
++ although they will appear in upcoming releases.
++ Some of the not-quite-there features include:
++
++ * macros
++ * threads and concurrency
++ * Unicode strings at levels other than codepoints
++ * interactive readline that understands Unicode
++ * non-blocking I/O
++ * much of Synopsis 9
++
++ There is a new online resource at
++ http://perl6.org/compilers/features that lists
++ the known implemented and missing features of
++ Rakudo Star 2012.07 and other Perl 6 implementations.


------------------------------

Date: Thu, 16 Aug 2012 21:22:54 -0600
From: Cal Dershowitz <cal@example.invalid>
Subject: Re: using cpan effectively
Message-Id: <i8OdnZhohvyWJLDNnZ2dnUVZ_vadnZ2d@supernews.com>

On 08/15/2012 01:17 AM, Mart van de Wege wrote:
> install ImageMagick

[x-posted to alt.os.linux.ubuntu]

I tried hard today but failed.  I understand that people don't want to 
see logs.  I mean other people, usually the barkey ones.  I don't find 
it unpleasant to read a log.

Q1)  Can anybody who has Imagemagick.h in a place that does something 
useful tell me where it is on his/her installation?

Time for me to walk out in the rain.
-- 
Cal


------------------------------

Date: Fri, 17 Aug 2012 13:00:58 +0200
From: Mart van de Wege <mvdwege@mail.com>
Subject: Re: using cpan effectively
Message-Id: <861uj5hjf9.fsf@gaheris.avalon.lan>

Cal Dershowitz <cal@example.invalid> writes:

> On 08/15/2012 01:17 AM, Mart van de Wege wrote:
>> install ImageMagick
>
> [x-posted to alt.os.linux.ubuntu]
>
> I tried hard today but failed.  I understand that people don't want to
> see logs.  I mean other people, usually the barkey ones.  I don't find
> it unpleasant to read a log.
>
> Q1)  Can anybody who has Imagemagick.h in a place that does something
> useful tell me where it is on his/her installation?

You have been told the answer. Make sure you have both ImageMagick and
the development packages installed. 

You should be able to find out the exact commands yourself, instead of
asking other people to do your homework for you.

Mart
-- 
"We will need a longer wall when the revolution comes."
    --- AJS, quoting an uncertain source.


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 3760
***************************************


home help back first fref pref prev next nref lref last post