[28607] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 9971 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Nov 16 03:05:56 2006

Date: Thu, 16 Nov 2006 00:05:08 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Thu, 16 Nov 2006     Volume: 10 Number: 9971

Today's topics:
        [ANNOUNCE] Emacs modules for Perl programming (Jari Aalto+mail.perl)
    Re: FAQ 7.21 What's the difference between calling a fu <tadmc@augustmail.com>
    Re: FAQ 7.7 : bug ? (end) <cmic@caramail.com>
    Re: FAQ 7.7 : bug ? <spamtrap@dot-app.org>
    Re: FAQ 7.7 : bug ? <tadmc@augustmail.com>
    Re: FAQ 7.7 : bug ? <cmic@caramail.com>
    Re: Get remote PC windows shares <lev.weissman@creo.com>
    Re: how do i update one section of a page leaving rest? <jurgenex@hotmail.com>
        howto POST and leave site? <botfood@yahoo.com>
        new CPAN modules on Thu Nov 16 2006 (Randal Schwartz)
    Re: Problem in calling two perl scripts one after the o <tadmc@augustmail.com>
    Re: problems while compiling perl on solaris 10 <ashish.sarika@gmail.com>
    Re: problems while compiling perl on solaris 10 <ashish.sarika@gmail.com>
        running parallel tasks with perl <peretz.eyal@gmail.com>
    Re: running parallel tasks with perl <spamtrap@dot-app.org>
    Re: running parallel tasks with perl <jurgenex@hotmail.com>
    Re: running parallel tasks with perl <noreply@gunnar.cc>
        threads crash on XP (in Tk script) <lev.weissman@creo.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: 16 Nov 2006 05:43:49 GMT
From: <jari.aalto@poboxes.com> (Jari Aalto+mail.perl)
Subject: [ANNOUNCE] Emacs modules for Perl programming
Message-Id: <perl-faq/emacs-lisp-modules_1163655788@rtfm.mit.edu>

Archive-name: perl-faq/emacs-lisp-modules
Posting-Frequency: 2 times a month
Maintainer: Jari Aalto A T cante net

Announcement: "What Emacs lisp modules can help with programming Perl"

    Preface

        Emacs is your friend if you have to do anything comcerning software
        development: It offers plug-in modules, written in Emacs lisp
        (elisp) language, that makes all your programmings wishes come
        true. Please introduce yourself to Emacs and your programming era
        will get a new light.

    Where to find Emacs/XEmacs

        o   Unix:
            http://www.gnu.org/software/emacs/emacs.html
            http://www.xemacs.org/

        o   Unix Windows port (for Unix die-hards):
            install http://www.cygwin.com/  which includes native Emacs 21.x.
            and XEmacs port

        o   Pure Native Windows port
            http://www.gnu.org/software/emacs/windows/ntemacs.html
            ftp://ftp.xemacs.org/pub/xemacs/windows/setup.exe

        o   More Emacs resources at
            http://tiny-tools.sourceforge.net/  => Emacs resource page

Emacs Perl Modules

    Cperl -- Perl programming mode

        http://math.berkeley.edu/~ilya/software/emacs/
        by Ilya Zakharevich

        CPerl is major mode for editing perl files. Also included in
        latest Emacs, but newest version is at Ilya's site. Note that
        the directrory at CPAN is out of date:
        http://www.cpan.org/modules/by-authors/id/ILYAZ/cperl-mode/

        Compared to default `perl-mode' that comes with Emacs, this
        one has more features.

    TinyPerl -- Perl related utilities

        http://tiny-tools.sourceforge.net/

        If you ever wonder how to deal with Perl POD pages or how to find
        documentation from all perl manpages, this package is for you.
        Couple of keystrokes and all the documentaion is in your hands.

        o   Instant function help: See documentation of `shift', `pop'...
        o   Show Perl manual pages in *pod* buffer
        o   Grep through all Perl manpages (.pod)
        o   Follow POD references e.g. [perlre] to next pod with RETURN
        o   Coloured pod pages with `font-lock'
        o   Separate `tiperl-pod-view-mode' for jumping topics and pages
            forward and backward in *pod* buffer.

        o   Update `$VERSION' variable with YYYY.MMDD on save.
        o   Load source code into Emacs, like Devel::DProf.pm
        o   Prepare script (version numbering) and Upload it to PAUSE
        o   Generate autoload STUBS (Devel::SelfStubber) for you
            Perl Module (.pm)

    TinyIgrep -- Perl Code browsing and easy grepping

        [TinyIgrep is included in Tiny Tools Kit]

        To grep from all installed Perl modules, define database to
        TinyIgrep. There is example file emacs-rc-tinyigrep.el that shows
        how to set up dattabases for Perl5, Perl4 whatever you have
        installed

        TinyIgrep calls Igrep.el to to do the search, You can adjust
        recursive grep options, set search case sensitivity, add user grep
        options etc.

        You can find latest `igrep.el' module at
        <http://groups.google.com/groups?group=gnu.emacs.sources> The
        maintainer is Jefin Rodgers <kevinr@ihs.com>.

    TinyCompile -- To Browse grep results in Emacs *compile* buffer

        TinyCompile is a minor mode for *compile* buffer from where
        you can collapse unwanted lines or shorten file URLs:

            /asd/asd/asd/asd/ads/as/da/sd/as/as/asd/file1:NNN: MATCHED TEXT
            /asd/asd/asd/asd/ads/as/da/sd/as/as/asd/file2:NNN: MATCHED TEXT

            -->

            cd /asd/asd/asd/asd/ads/as/da/sd/as/as/asd/
            file1:NNN: MATCHED TEXT
            file1:NNN: MATCHED TEXT

End



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

Date: Wed, 15 Nov 2006 18:55:36 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: FAQ 7.21 What's the difference between calling a function as &foo and foo()?
Message-Id: <slrnelndo8.idr.tadmc@tadmc30.august.net>

Justin C <justin.0611@purestblue.com> wrote:
> In article <m9jr24-li2.ln1@blue.stonehenge.com>,
>  PerlFAQ Server <brian@stonehenge.com> wrote:
>
>>  When you call a function as &foo, you allow that function access to your
>>     current @_ values, and you bypass prototypes.
>
> I keep seeing this. What, in Perl, is a prototype? I've tried perldoc -q 
> but not joy. Perldoc -f prototype doesn't help me. Where can I read 
> about this?

   "Far More Than Everything You've Ever Wanted to Know about
    Prototypes in Perl"

    http://library.n0i.net/programming/perl/articles/fm_prototypes/


The short version is: prototypes in Perl are not what you are expecting
if you've programmed in any other programming language.


-- 
    Tad McClellan                          SGML consulting
    tadmc@augustmail.com                   Perl programming
    Fort Worth, Texas


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

Date: 15 Nov 2006 22:16:59 -0800
From: "cmic" <cmic@caramail.com>
Subject: Re: FAQ 7.7 : bug ? (end)
Message-Id: <1163657819.040130.251210@e3g2000cwe.googlegroups.com>


Sherm Pendley a =E9crit :

> "cmic" <cmic@caramail.com> writes:
>
> > I am not a Perl Expert but I find that this assertion is false :
> >
> > ------8<-------------------from FAQ 7.7-------------
> > Although it has the same precedence as in C, Perl's "?:" operator
> > produces an lvalue. This assigns $x to either $a or $b, depending on
> > the
> > trueness of $maybe:        ($maybe ? $a : $b) =3D $x;
> > ----------8<-----------------
> >
> > It  should be : $x=3D($maybe ? $a : $b);
> > Is a typo or what ?
>
> Nope, it's not a typo. If you wrote the FAQ example with an if/else state=
ment
> instead of ?:, it looks like this:
>
>     if ($maybe) {
>         $a =3D $x;
>     } else {
>         $b =3D $x;
>     }
>
> Whereas your version assigns either $a or $b to $x, depending on the true=
ness
> of $maybe - precisely the opposite of what the FAQ example is doing. Writ=
ten
> with an if/else statement, your example looks like this:
>
>     if ($maybe) {
>         $x =3D $a;
>     } else {
>         $x =3D $b;
>     }

Oops ! Sorry for the mess.
I *know* what a l-value is, but I did not read correctly the FAQ. I saw
a ternary C operator instead, so I could not imagine that the Perl
operator assigns $a or $b ! stupid.
Of course, it works as expected and I agree.

Of course, I'm not a Perl expert (neither a C expert).
Thanks for the tip.
--
cmic
>
> sherm--
>
> --
> Web Hosting by West Virginians, for West Virginians: http://wv-www.net
> Cocoa programming in Perl: http://camelbones.sourceforge.net



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

Date: Wed, 15 Nov 2006 18:13:32 -0500
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: FAQ 7.7 : bug ?
Message-Id: <m21wo4gv6r.fsf@Sherm-Pendleys-Computer.local>

Michele Dondi <bik.mido@tiscalinet.it> writes:

> On 15 Nov 2006 13:31:27 -0800, "cmic" <cmic@caramail.com> wrote:
>
>>I am not a Perl Expert but I find that this assertion is false :
>>
>>------8<-------------------from FAQ 7.7-------------
>>Although it has the same precedence as in C, Perl's "?:" operator
>>produces an lvalue. This assigns $x to either $a or $b, depending on
>>the
>>trueness of $maybe:        ($maybe ? $a : $b) = $x;
>>----------8<-----------------
>>
>>It  should be : $x=($maybe ? $a : $b);
>>Is a typo or what ?
>
> It's not a typo and the assertion is not false. The whole point about
> it is that it claims that C<?:> returns an *lvalue*, and the example
> exactly shows one such use, which you couldn't do if that was not the
> case, whereas your "correction" doesn't.

On the other hand, the "although" at the beginning implies that you can't
do the same thing in C, which *is* false. It can be done, all it takes is
some pointer gymnastics:

    #include <stdio.h>
    
    int main() {
        int foo;
        int bar;
    
        *( 1 ? &foo : &bar ) = 5;
        *( 0 ? &foo : &bar ) = 10;
        
        printf("Foo: %d\nBar: %d\n", foo, bar);
    }

Produces this output:

    Foo: 5
    Bar: 10

[ObPerl] Also, isn't it discouraged to use $a and $b outside of a sort()
callback?

sherm--

-- 
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


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

Date: Wed, 15 Nov 2006 18:49:28 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: FAQ 7.7 : bug ?
Message-Id: <slrnelndco.idr.tadmc@tadmc30.august.net>

cmic <cmic@caramail.com> wrote:

> I am not a Perl Expert but I find that this assertion is false :
>
> ------8<-------------------from FAQ 7.7-------------
> Although it has the same precedence as in C, Perl's "?:" operator
> produces an lvalue. This assigns $x to either $a or $b, depending on
> the
> trueness of $maybe:        ($maybe ? $a : $b) = $x;
> ----------8<-----------------


It is called an _l_value, because it can appear on the _l_eft-hand
side of an assignment.

The FAQ code has ?: on the left-hand side of an assignment.


> It  should be : $x=($maybe ? $a : $b);


Your code has ?: on the right-hand side of an assignment,
therefore, it is something other than an lvalue.

$x is the lvalue in your code.


-- 
    Tad McClellan                          SGML consulting
    tadmc@augustmail.com                   Perl programming
    Fort Worth, Texas


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

Date: 15 Nov 2006 22:20:20 -0800
From: "cmic" <cmic@caramail.com>
Subject: Re: FAQ 7.7 : bug ?
Message-Id: <1163658020.121525.263080@h48g2000cwc.googlegroups.com>


xhoster@gmail.com a =E9crit :

> "cmic" <cmic@caramail.com> wrote:
> > Hello.
> >
> > I am not a Perl Expert but I find that this assertion is false :
> >
> > ------8<-------------------from FAQ 7.7-------------
> > Although it has the same precedence as in C, Perl's "?:" operator
> > produces an lvalue. This assigns $x to either $a or $b, depending on
> > the
> > trueness of $maybe:        ($maybe ? $a : $b) =3D $x;
> > ----------8<-----------------
> >
> > It  should be : $x=3D($maybe ? $a : $b);
> > Is a typo or what ?
>
> It is a reado.  Your code assigns to $x *from* either $a or $b.  The
> original code assigns $x *to* either $a or $b.  You are reading a "from"
> in the docs when one does not exist.

You are absolutely right : it's a reado. My brain "wanted" to see a C
ternary operator.
Thanks for the help
--
cmic

>
> Xho
>
> --
> -------------------- http://NewsReader.Com/ --------------------
> Usenet Newsgroup Service                        $9.95/Month 30GB



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

Date: 15 Nov 2006 23:06:34 -0800
From: "MoshiachNow" <lev.weissman@creo.com>
Subject: Re: Get remote PC windows shares
Message-Id: <1163660794.849639.313740@m7g2000cwm.googlegroups.com>

thanks



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

Date: Thu, 16 Nov 2006 04:01:25 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: how do i update one section of a page leaving rest?
Message-Id: <poR6h.3627$fk2.640@trndny02>

> gavino wrote:
>> George Bush: fixed clinton inflation, ficed 9-11, freed two
>> countries, vote republican.  Europe can copy the USA but has a long
>> way to go until its living standard or schools catch up to usa.

Oh, BTW, this reminds:
http://consumerpromotioncenter.com/?cid=t6tdCzS7nTA&u=65786dab8298c7be9ffdcc54489bcbd4&s=CD6086

Although I have to admit that 500$ is way to much. A value of 5$ would still 
be flattery.

jue 




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

Date: 15 Nov 2006 19:27:49 -0800
From: "botfood" <botfood@yahoo.com>
Subject: howto POST and leave site?
Message-Id: <1163647669.505418.57420@k70g2000cwa.googlegroups.com>

I have used LWP UserAgent a couple times before to POST to a third
party site, and then parse what I needed out of the response... But
what I want to do now is set up appropriate fields as if from a FORM,
and POST them to an external URL, and turn the browser over to that
site rather than returning the response to my script...

How can this be done the simplest?

There are too many fields to set up as  a GET and print as a Location
header....



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

Date: Thu, 16 Nov 2006 05:42:10 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Thu Nov 16 2006
Message-Id: <J8t6IA.AzE@zorch.sf-bay.org>

The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN).  You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.

Acme-Spork-v0.0.5
http://search.cpan.org/~dmuey/Acme-Spork-v0.0.5/
Perl extension for spork()ing in your script
----
Alien-SeleniumRC-0.90
http://search.cpan.org/~lukec/Alien-SeleniumRC-0.90/
Packages the Selenium Remote Control server.
----
Bot-BasicBot-Pluggable-Module-CoreList-0.02
http://search.cpan.org/~book/Bot-BasicBot-Pluggable-Module-CoreList-0.02/
IRC frontend to Module::CoreList
----
CGI-Application-Plugin-ProtectCSRF-0.02
http://search.cpan.org/~holly/CGI-Application-Plugin-ProtectCSRF-0.02/
Plug-in protected from CSRF
----
CGI-Auth-Auto-1.10
http://search.cpan.org/~leocharre/CGI-Auth-Auto-1.10/
Automatic authentication maintenance and persistence for cgi scrips.
----
Catalyst-Runtime-5.7006
http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7006/
Catalyst Runtime version
----
Catalyst-View-TT-0.24
http://search.cpan.org/~mramberg/Catalyst-View-TT-0.24/
Template View Class
----
Class-BuildMethods-0.20
http://search.cpan.org/~ovid/Class-BuildMethods-0.20/
Lightweight implementation-agnostic generic methods.
----
Class-InsideOut-1.0301
http://search.cpan.org/~dagolden/Class-InsideOut-1.0301/
a safe, simple inside-out object construction kit
----
Crypt-Rijndael-0.06_03
http://search.cpan.org/~bdfoy/Crypt-Rijndael-0.06_03/
Crypt::CBC compliant Rijndael encryption module
----
Crypt-Rijndael-0.06_04
http://search.cpan.org/~bdfoy/Crypt-Rijndael-0.06_04/
Crypt::CBC compliant Rijndael encryption module
----
DBIx-Class-Schema-Loader-0.03009
http://search.cpan.org/~blblack/DBIx-Class-Schema-Loader-0.03009/
Dynamic definition of a DBIx::Class::Schema
----
DJabberd-Authen-UserLimit-0.30
http://search.cpan.org/~misc/DJabberd-Authen-UserLimit-0.30/
limit the number of connected user
----
Encode-Arabic-1.24
http://search.cpan.org/~smrz/Encode-Arabic-1.24/
Encodings of Arabic
----
Encode-Mapper-1.24
http://search.cpan.org/~smrz/Encode-Mapper-1.24/
Intuitive, yet efficient construction of mappings for Encode
----
Gnome2-Print-1.000
http://search.cpan.org/~ebassi/Gnome2-Print-1.000/
Perl wrappers for the Gnome Print utilities.
----
HTML2XHTML-0.03.01
http://search.cpan.org/~oembry/HTML2XHTML-0.03.01/
Wrapper to command-line program that converts from HTML 3.x/4.x to XHTML 1.0
----
HTTP-Daemon-App-v0.0.7
http://search.cpan.org/~dmuey/HTTP-Daemon-App-v0.0.7/
Create 2 or 3 line, fully functional (SSL) HTTP server(s)
----
HTTP-Daemon-App-v0.0.8
http://search.cpan.org/~dmuey/HTTP-Daemon-App-v0.0.8/
Create 2 or 3 line, fully functional (SSL) HTTP server(s)
----
Inline-C2XS-0.06
http://search.cpan.org/~sisyphus/Inline-C2XS-0.06/
create an XS file from Inline C or Inline CPP code.
----
Lingua-RU-Jcuken-1.01
http://search.cpan.org/~stro/Lingua-RU-Jcuken-1.01/
Conversion between QWERTY and JCUKEN keys in Russian
----
Lingua-RU-Jcuken-1.02
http://search.cpan.org/~stro/Lingua-RU-Jcuken-1.02/
Conversion between QWERTY and JCUKEN keys in Russian
----
Lingua-UK-Jcuken-1.01
http://search.cpan.org/~stro/Lingua-UK-Jcuken-1.01/
Conversion between QWERTY and JCUKEN keys in Ukrainian
----
MP3-Splitter-0.04
http://search.cpan.org/~ilyaz/MP3-Splitter-0.04/
Perl extension for splitting MP3 files
----
Mail-SPF-2.000_002
http://search.cpan.org/~jmehnle/Mail-SPF-2.000_002/
An object-oriented implementation of Sender Policy Framework
----
Module-Pluggable-3.2
http://search.cpan.org/~simonw/Module-Pluggable-3.2/
automatically give your module the ability to have plugins
----
Mozilla-Mechanize-GUITester-0.04
http://search.cpan.org/~bosu/Mozilla-Mechanize-GUITester-0.04/
enhances Mozilla::Mechanize with GUI testing.
----
Net-DNS-Resolver-Programmable-0.002
http://search.cpan.org/~jmehnle/Net-DNS-Resolver-Programmable-0.002/
programmable DNS resolver class for offline emulation of DNS
----
Net-DNS-Resolver-Programmable-0.002.1
http://search.cpan.org/~jmehnle/Net-DNS-Resolver-Programmable-0.002.1/
programmable DNS resolver class for offline emulation of DNS
----
Net-Packet-3.21
http://search.cpan.org/~gomor/Net-Packet-3.21/
a framework to easily send and receive frames from layer 2 to layer 7
----
POE-Component-Client-Pastebot-0.01
http://search.cpan.org/~bingos/POE-Component-Client-Pastebot-0.01/
interact with Bot::Pastebot web services.
----
POE-Component-Generic-0.0910
http://search.cpan.org/~gwyn/POE-Component-Generic-0.0910/
A POE component that provides non-blocking access to a blocking object.
----
Perl-Critic-More-0.1
http://search.cpan.org/~clotho/Perl-Critic-More-0.1/
Supplemental policies for Perl::Critic
----
Perl-Critic-More-0.11
http://search.cpan.org/~cdolan/Perl-Critic-More-0.11/
Supplemental policies for Perl::Critic
----
Pod-MultiLang-0.10
http://search.cpan.org/~hio/Pod-MultiLang-0.10/
multi languages in Pod
----
Querylet-0.322
http://search.cpan.org/~rjbs/Querylet-0.322/
simplified queries for the non-programmer
----
Spread-3.17.3_108
http://search.cpan.org/~jesus/Spread-3.17.3_108/
Perl extension for the Spread group communication system
----
Sys-RunAlone-0.06
http://search.cpan.org/~elizabeth/Sys-RunAlone-0.06/
make sure only one invocation of a script is active at a time
----
Sys-RunAlone-0.07
http://search.cpan.org/~elizabeth/Sys-RunAlone-0.07/
make sure only one invocation of a script is active at a time
----
Sys-RunAlways-0.04
http://search.cpan.org/~elizabeth/Sys-RunAlways-0.04/
make sure there is always one invocation of a script active
----
Template-Declare--1.00_01
http://search.cpan.org/~jesse/Template-Declare--1.00_01/
----
Test-Run-0.0102
http://search.cpan.org/~shlomif/Test-Run-0.0102/
----
Test-WWW-Selenium-1.10
http://search.cpan.org/~lukec/Test-WWW-Selenium-1.10/
Test applications using Selenium Remote Control
----
Text-Balanced-v1.99.0
http://search.cpan.org/~dconway/Text-Balanced-v1.99.0/
Extract delimited text sequences from strings.
----
Text-Balanced-v1.99.1
http://search.cpan.org/~dconway/Text-Balanced-v1.99.1/
Extract delimited text sequences from strings.
----
Time-Normalize-0.04
http://search.cpan.org/~roode/Time-Normalize-0.04/
Convert time and date values into standardized components.
----
Time-Normalize-0.05
http://search.cpan.org/~roode/Time-Normalize-0.05/
Convert time and date values into standardized components.
----
Tk-DiffText-0.12
http://search.cpan.org/~mjcarman/Tk-DiffText-0.12/
Perl/Tk composite widget for colorized diffs.
----
WWW-Robot-0.024
http://search.cpan.org/~kventin/WWW-Robot-0.024/
configurable web traversal engine (for web robots & agents)
----
WoW-Wiki-0.01
http://search.cpan.org/~sscotto/WoW-Wiki-0.01/
Perl extension to parse WoW wikki markup
----
Wx-0.63
http://search.cpan.org/~mbarbon/Wx-0.63/
interface to the wxWidgets cross-platform GUI toolkit
----
o2sms-3.21
http://search.cpan.org/~mackers/o2sms-3.21/
A module to send SMS messages using the website of O2 Ireland


If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.

This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
  http://www.stonehenge.com/merlyn/LinuxMag/col82.html

print "Just another Perl hacker," # the original

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


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

Date: Wed, 15 Nov 2006 19:00:05 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Problem in calling two perl scripts one after the other using "exec"
Message-Id: <slrnelne0l.idr.tadmc@tadmc30.august.net>

saki80@gmail.com <saki80@gmail.com> wrote:

>   I am calling perl scripts b.pl & c.pl from a.pl which takes three
> arguments. I want to pass these command line arguments to b.pl & c.pl
> also. so i could not do this by using 'system'.


Why not?


> but the problem is if i call two exec's , only one is getting
> called..but if i use one at a time by commenting the other it is
> working fine.


That is how exec is _supposed_ to work.


> How can i call two exec one after the other so that both will execute.


You cannot.


system() and exec() have the same syntax, they differ only 
in their semantics.


-- 
    Tad McClellan                          SGML consulting
    tadmc@augustmail.com                   Perl programming
    Fort Worth, Texas


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

Date: 15 Nov 2006 17:26:15 -0800
From: "ashish" <ashish.sarika@gmail.com>
Subject: Re: problems while compiling perl on solaris 10
Message-Id: <1163640375.011707.205080@h48g2000cwc.googlegroups.com>

Thanks for your reply.
I wasn't too sure the diagnosis was very clear ...
I have the following gcc pre-installed :

-r-xr-xr-x   3 root     bin       122260 Jan 23  2005 /usr/sfw/bin/gcc


Do you know of any way I can find out whether it is corrupted or
incomplete in any way.

Thanks,
Ashish




anno4000@radom.zrz.tu-berlin.de wrote:
> ashish <ashish.sarika@gmail.com> wrote in comp.lang.perl.misc:
> > Hi,
> >
> > When I try to compile perl on Solaris 10, I get the following error
> > message :
> >
> >
> > Use which C compiler? [cc] /usr/sfw/bin/gcc
>
> [...]
>
> > Uh-oh, the C compiler '/usr/sfw/bin/gcc' doesn't seem to be working.
> > You need to find a working C compiler.
> > Either (purchase and) install the C compiler supplied by your OS
> > vendor,
> > or for a free C compiler try http://gcc.gnu.org/
> > I cannot continue any further, aborting.
> 
> The diagnosis is pretty clear, isn't it?
> 
> Anno



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

Date: 15 Nov 2006 17:30:39 -0800
From: "ashish" <ashish.sarika@gmail.com>
Subject: Re: problems while compiling perl on solaris 10
Message-Id: <1163640639.768504.189250@e3g2000cwe.googlegroups.com>

Hi Mark,

Thanks for the tip.

I want to be able to compile perl as later I will need to be able to
compile additional modules. In particular, I want to be able to compile
the sybperl module which is for connecting to a sybase database.

I also wanted to be able to have a separate perl for one particular
application in the application's sub directory structure. I wanted to
be free from the unix admins as in our case, the machine is managed by
an offsite vendor, and they are not very responsive.

Do you think I can install a solaris package in a directory of my
choice?

Thanks,
Ashish


Mark Clements wrote:
> ashish wrote:
> > Hi,
> >
> > When I try to compile perl on Solaris 10, I get the following error
> > message :
> >
>
> You probably have good reason for wanting to compile perl from scratch,
> but for the record recent (7+?) versions of Solaris come with perl on
> the release CDs.
>
> If you need a more recent version, ready-to-install packages can be
> found at http://www.sunfreeware.com . You can also download compilers here.
> 
> 
> 
> Mark



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

Date: 15 Nov 2006 19:19:41 -0800
From: "EZP" <peretz.eyal@gmail.com>
Subject: running parallel tasks with perl
Message-Id: <1163647181.265423.235490@h54g2000cwb.googlegroups.com>

Hi all,
I'm trying to run a script that activate two different tasks in
parallel.
How can i do it?

Thanks,
EZP



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

Date: Wed, 15 Nov 2006 22:27:09 -0500
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: running parallel tasks with perl
Message-Id: <m2slgkf4vm.fsf@Sherm-Pendleys-Computer.local>

"EZP" <peretz.eyal@gmail.com> writes:

> Hi all,
> I'm trying to run a script that activate two different tasks in
> parallel.
> How can i do it?

That's a Frequently Asked Question:

    perldoc -q background

sherm--

-- 
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


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

Date: Thu, 16 Nov 2006 03:31:01 GMT
From: "J?rgen Exner" <jurgenex@hotmail.com>
Subject: Re: running parallel tasks with perl
Message-Id: <VXQ6h.2993$672.2551@trndny01>

EZP wrote:
> Hi all,
> I'm trying to run a script that activate two different tasks in
> parallel.
> How can i do it?

One way is to use fork().

jue




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

Date: Thu, 16 Nov 2006 05:22:26 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: running parallel tasks with perl
Message-Id: <4s27g6Ft63ljU1@mid.individual.net>

EZP wrote:
> I'm trying to run a script that activate two different tasks in
> parallel.
> How can i do it?

In addition to the other suggestions, you may want to check out the CPAN 
module Parallel::ForkManager.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


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

Date: 15 Nov 2006 23:07:51 -0800
From: "MoshiachNow" <lev.weissman@creo.com>
Subject: threads crash on XP (in Tk script)
Message-Id: <1163660871.066314.185340@m73g2000cwd.googlegroups.com>

HI,

Running a Tk script on my XP I always get an error.

Code:
########################################################################################
#use warnings;
use strict;
use Win32::OLE qw( in );
use Win32::Lanman;
use Net::Domain qw(hostname hostfqdn hostdomain);
use Socket 'inet_ntoa';
use Sys::Hostname 'hostname';
use Data::Validate::IP qw(is_ipv4);
use Net::Ping;
use Tk;
use Tk::Text;
use Tk::Scrollbar;
use Tk::Pane;
use threads;

threads->create(sub { print("I am a thread\n"); })->join();

Error:
I am a thread
Free to wrong pool 1822b00 not 222770 during global destruction.

Any ideas?
Thanks



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

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:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

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

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#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 V10 Issue 9971
***************************************


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