Re: Calling bash things inside perl script.

2007-04-03 Thread D. Bolliger
Nath, Alok (STSD) am Dienstag, 3. April 2007 07:03: Hi, Before starting my problem I just want to thank all the active members who had literally mentored me in learning perl. I have bunch of this bash scripts which has lot of functions. I wanted to call and use them in a perl script.I am

Re: Calling bash things inside perl script.

2007-04-03 Thread D. Bolliger
D. Bolliger am Dienstag, 3. April 2007 07:56: Nath, Alok (STSD) am Dienstag, 3. April 2007 07:03: Hi, Before starting my problem I just want to thank all the active members who had literally mentored me in learning perl. I have bunch of this bash scripts which has lot of functions.

Re: MS Word translation

2007-04-03 Thread rcook
Hello, Would you please tell me what's the correct module for translating a word document to the plain text?Thanks. Try putting perl read word document into google It will probably help you Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

how to know the object type

2007-04-03 Thread Anish Kumar K
Hi In java we have instance operator to tell the type of Object. Similarly in perl say I am passing a reference object to a function, Is it possible to detect in the function whether the object is HASH or ARRAY... Thanks Anish -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: how to know the object type

2007-04-03 Thread Martin Barth
Anish Kumar K schrieb: Hi In java we have instance operator to tell the type of Object. Similarly in perl say I am passing a reference object to a function, Is it possible to detect in the function whether the object is HASH or ARRAY... Thanks Anish Hi, try this: ref($var);

RE: how to know the object type

2007-04-03 Thread Thomas Bätzler
Anish Kumar K [EMAIL PROTECTED] In java we have instance operator to tell the type of Object. Similarly in perl say I am passing a reference object to a function, Is it possible to detect in the function whether the object is HASH or ARRAY... The function ref does what you want. HTH,

Re: how to know the object type

2007-04-03 Thread Ovid
--- Anish Kumar K [EMAIL PROTECTED] wrote: Hi In java we have instance operator to tell the type of Object. Similarly in perl say I am passing a reference object to a function, Is it possible to detect in the function whether the object is HASH or ARRAY... If you need to know the

Re: MS Word translation

2007-04-03 Thread Edi STOJICEVIC
* Jen mlists [EMAIL PROTECTED] [2007-04-03 11:56:07 +0800] wrote : Hello, Would you please tell me what's the correct module for translating a word document to the plain text?Thanks. Hi, If you're using Linux you can try the little app' catdoc : $ catdoc test.doc test.txt And that's

Re: MS Word translation

2007-04-03 Thread Ken Foskey
On Tue, 2007-04-03 at 11:56 +0800, Jen mlists wrote: Hello, Would you please tell me what's the correct module for translating a word document to the plain text?Thanks. There is a Perl Interface in OpenOffice.org that might be useful for you. -- Ken Foskey FOSS developer -- To

Re: Calling bash things inside perl script.

2007-04-03 Thread Ken Foskey
On Tue, 2007-04-03 at 10:33 +0530, Nath, Alok (STSD) wrote: Hi, Before starting my problem I just want to thank all the active members who had literally mentored me in learning perl. I have bunch of this bash scripts which has lot of functions. I wanted to call and

Collect the output of a shell command and set it in a file

2007-04-03 Thread marcos rebelo
I have a program that is sending some output. All the output coming from the program shall go to a file +- in the order that would go to the output. The STDERR should have a prefix ** and the STDOUT should have a prefix. This problem seems to be simple, correct? For getting the output we

Re: perl

2007-04-03 Thread mani kandan
Sorry for delay response yes it works fine perl C:\Program Files\Apache Group\Apache2\cgi-bin\first.pl but i get error log when i use the apache server [error] client [127.0.0.1] OS3 The system cannot specified the path specified: *C:\Program Files\Apache

Re: Calling bash things inside perl script.

2007-04-03 Thread Rodrick Brown
Instead of making spaghetti just rewrite the entire script in Perl On 4/3/07, Nath, Alok (STSD) [EMAIL PROTECTED] wrote: Hi, Before starting my problem I just want to thank all the active members who had literally mentored me in learning perl. I have bunch of this bash

RE: Calling bash things inside perl script.

2007-04-03 Thread Andrew Curry
If you cant rewite them due to constraints etc.. Then just use system or `` depending on if you want to test the return values. -On 4/3/07, Nath, Alok (STSD) [EMAIL PROTECTED] wrote: Hi, Before starting my problem I just want to thank all the active members who had literally

how to use xml::simple with nested for loops???

2007-04-03 Thread Gauthier, Dave
Hi: I'm trying to construct something like a nested for loop structuire to read the data out of an XML file using XML::Simple. Here's the sample xml... ?xml version='1.0' encoding='ISO-8859-1' ? ARBORINFO NAME=Info about Trees FOREST NAME=olympic TREE NAME=spruce

Re: Collect the output of a shell command and set it in a file

2007-04-03 Thread Chas Owens
On 4/3/07, marcos rebelo [EMAIL PROTECTED] wrote: I have a program that is sending some output. All the output coming from the program shall go to a file +- in the order that would go to the output. The STDERR should have a prefix ** and the STDOUT should have a prefix. This problem seems

Re: how to use xml::simple with nested for loops???

2007-04-03 Thread Rob Dixon
Gauthier, Dave wrote: Hi: I'm trying to construct something like a nested for loop structuire to read the data out of an XML file using XML::Simple. Here's the sample xml... ?xml version='1.0' encoding='ISO-8859-1' ? ARBORINFO NAME=Info about Trees FOREST NAME=olympic TREE

perl 5.10 questions

2007-04-03 Thread oryann9
In The Perl Review spring 07 page 10 it states: With Perl 5.10 I can write my own lexical pragmas. In fact, feature was implemented this way. The %^H special variable lets me attach references to the optree, which I can then inspect with caller. Perl passes this information as a new item in the

Re: perl 5.10 questions

2007-04-03 Thread Paul Johnson
On Tue, Apr 03, 2007 at 11:44:33AM -0700, oryann9 wrote: In The Perl Review spring 07 page 10 it states: With Perl 5.10 I can write my own lexical pragmas. That should probably be in the future tense, since Perl 5.10 hasn't been released yet. But it's fairly close. I suppose it's in a

Re: how to know the object type

2007-04-03 Thread Chad Kemp
Anish Kumar K wrote: Hi In java we have instance operator to tell the type of Object. Similarly in perl say I am passing a reference object to a function, Is it possible to detect in the function whether the object is HASH or ARRAY... Thanks Anish Hello Anish... If I'm not mistaken,

Re: how to know the object type

2007-04-03 Thread Jeff Pang
If I'm not mistaken, all Perl objects are references to a hash. Not correct at all. Perl objects can be anything that's the blessed references. You can say any the below: sub new { my $class = shift; my $var = 'foo'; bless \$var,$class; } sub new { my $class = shift; my