Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

perl-beginner · Perl Beginners Mailing List

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 3761
  • Category: Perl
  • Founded: Aug 2, 1998
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 26731 - 26764 of 27470   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#26731 From: "interrobang" <CedricCicada@...>
Date: Sun Dec 13, 2009 12:44 pm
Subject: Apology from a moderator
interrobang
Send Email Send Email
 
Greetings!

I apologize for not reacting to spam messages that were posted in the last few
weeks.  A spam filter someplace is doing its job too well, and they did not come
through into my E-mail.  Normally, when I see a spam message on this group, I
ban the author immediately and remove the message from the group's archives. 
However, I don't check the group's archives unless a message comes through.  One
finally did just now, and I cleaned things up.

If you want to alert me to spam messages that need action, feel free to send a
message to perl-beginner-owner@yahoogroups.com.

Thank you for your patience and understanding.

Rob Richardson

#26732 From: "Ashok" <ashok1288@...>
Date: Tue Dec 22, 2009 4:35 am
Subject: BOOK & Tutorials
ashok1288...
Send Email Send Email
 
could anybody help me in finding the best book (author) for the perl
programming language.................?

also mention the sites where i can get tutorials and e-books for the perl
programming language..............


iam interested in learning perl language...............

please provide me with the details.............

waiting for the answer..............

#26733 From: merlyn@...
Date: Tue Dec 22, 2009 5:15 am
Subject: Re: [PBML] BOOK & Tutorials
merlynstoneh...
Send Email Send Email
 
>>>>> "Ashok" == Ashok  <ashok1288@...> writes:

Ashok> could anybody help me in finding the best book (author) for the perl
Ashok> programming language.................?

http://lmgtfy.com/?q=best+perl+books

Ashok> also mention the sites where i can get tutorials and e-books for the perl
programming language..............

http://lmgtfy.com/?q=perl+tutorials

Ashok> waiting for the answer..............

Why were you waiting?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

#26734 From: "John Harris" <jkharris@...>
Date: Tue Dec 22, 2009 4:55 am
Subject: Re: [PBML] BOOK & Tutorials
jkharris0
Send Email Send Email
 
I have found that the Perl books by O'Reilly, written by the guys deeply
involved in the Perl world, have been most helpful to me.  Good luck.

John

   ----- Original Message -----
   From: Ashok
   To: perl-beginner@yahoogroups.com
   Sent: Monday, December 21, 2009 11:35 PM
   Subject: [PBML] BOOK & Tutorials



   could anybody help me in finding the best book (author) for the perl
   programming language.................?

   also mention the sites where i can get tutorials and e-books for the perl
programming language..............

   iam interested in learning perl language...............

   please provide me with the details.............

   waiting for the answer..............






[Non-text portions of this message have been removed]

#26735 From: marquee7_2000@...
Date: Tue Dec 22, 2009 5:38 am
Subject: Re: [PBML] BOOK & Tutorials
marquee7_2000
Send Email Send Email
 
This is true...their books are all I read
Sent from my BlackBerry Smartphone provided by Alltel

-----Original Message-----
From: "John Harris" <jkharris@...>
Date: Mon, 21 Dec 2009 23:55:47
To: <perl-beginner@yahoogroups.com>
Subject: Re: [PBML] BOOK & Tutorials

I have found that the Perl books by O'Reilly, written by the guys deeply
involved in the Perl world, have been most helpful to me.  Good luck.

John

   ----- Original Message -----
   From: Ashok
   To: perl-beginner@yahoogroups.com
   Sent: Monday, December 21, 2009 11:35 PM
   Subject: [PBML] BOOK & Tutorials



   could anybody help me in finding the best book (author) for the perl
   programming language.................?

   also mention the sites where i can get tutorials and e-books for the perl
programming language..............

   iam interested in learning perl language...............

   please provide me with the details.............

   waiting for the answer..............






[Non-text portions of this message have been removed]




[Non-text portions of this message have been removed]

#26736 From: Shlomi Fish <shlomif@...>
Date: Tue Dec 22, 2009 7:05 am
Subject: Re: [PBML] BOOK & Tutorials
shlomif2
Send Email Send Email
 
Hi Ashok!

On Tuesday 22 Dec 2009 06:35:33 Ashok wrote:
> could anybody help me in finding the best book (author) for the perl
> programming language.................?
>
> also mention the sites where i can get tutorials and e-books for the perl
>  programming language..............

We've concentrated resources for Perl beginners over at http://perl-begin.org/
  . There's both a http://perl-begin.org/tutorials/ page for Online Tutorials
and a http://perl-begin.org/books/ section for books as well as many other
pages.

We're now working on integrating the best stuff out of perl-begin.org into
http://learn.perl.org/ , which is a more official site and with better
prominence in most search engine searches. But this will take some work, and
for the time being, I recommend http://perl-begin.org/ .

>
>
> iam interested in learning perl language...............
>
> please provide me with the details.............
>
> waiting for the answer..............
>

Regards,

	 Shlomi Fish

--
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Original Riddles - http://www.shlomifish.org/puzzles/

Bzr is slower than Subversion in combination with Sourceforge.
( By: http://dazjorz.com/ )

#26737 From: Mike Brown <brown@...>
Date: Sat Dec 26, 2009 9:49 pm
Subject: Sun Solaris modules
brown@...
Send Email Send Email
 
I'm runnning Solaris 10 x86 on my home server.

I just installed 5.10.1 and set up mine and root's path to find the /opt/perl5
location of the installtion.

The README.solaris mentions the Solaris modules.

Using cpan, I tried to install the modules.  The "i /Sun::Solaris/" found
some, but not all installed.

For example, the "install Sun::Solaris::Project" failed because:

	 t/Project.t .. Can't locate Sun/Solaris/Utils.pm

So, I tried the following command: i /Solaris/

That returned 103 entries, none of which had Utils as part of the module name.

Does anyone know what the module name is that I should install?  Normally
cpan finds a dependency issue and lists that it needs such and such module.
Not this time.

Should I install all of the modules listed in the i command, or more
importantly, should I even bother installing any of the Solaris modules?

Thanks.

MB
--
e-mail: vidiot@...                                /~\ The ASCII
[I've been to Earth.  I know where it is.         ]      \ / Ribbon Campaign
[And I'm gonna take us there.    Starbuck  3/25/07]       X  Against
Visit - URL: http://vidiot.com/                          / \ HTML Email

#26738 From: Shlomi Fish <shlomif@...>
Date: Sat Dec 26, 2009 10:35 pm
Subject: Re: [PBML] Sun Solaris modules
shlomif2
Send Email Send Email
 
On Saturday 26 Dec 2009 23:49:55 Mike Brown wrote:
> I'm runnning Solaris 10 x86 on my home server.
>
> I just installed 5.10.1 and set up mine and root's path to find the
>  /opt/perl5 location of the installtion.
>
> The README.solaris mentions the Solaris modules.
>
> Using cpan, I tried to install the modules.  The "i /Sun::Solaris/" found
> some, but not all installed.
>
> For example, the "install Sun::Solaris::Project" failed because:
>
>  t/Project.t .. Can't locate Sun/Solaris/Utils.pm
>
> So, I tried the following command: i /Solaris/
>
> That returned 103 entries, none of which had Utils as part of the module
>  name.
>
> Does anyone know what the module name is that I should install?  Normally
> cpan finds a dependency issue and lists that it needs such and such module.
> Not this time.
>
> Should I install all of the modules listed in the i command, or more
> importantly, should I even bother installing any of the Solaris modules?
>

From what I understand the "Solaris" modules in the CPAN are intended to make
use of the Solaris-specific APIs. Otherwise, they are not needed and you can
just the more universal and portable UNIX APIs or those of libraries above
them (e.g: gtk+).

Regards,

	 Shlomi Fish

--
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Freecell Solver - http://fc-solve.berlios.de/

Bzr is slower than Subversion in combination with Sourceforge.
( By: http://dazjorz.com/ )

#26739 From: Mike Brown <brown@...>
Date: Sat Dec 26, 2009 11:05 pm
Subject: Re: [PBML] Sun Solaris modules
brown@...
Send Email Send Email
 
On Sun, Dec 27, 2009 at 12:35:45AM +0200, Shlomi Fish wrote:
> From what I understand the "Solaris" modules in the CPAN are intended to make
> use of the Solaris-specific APIs. Otherwise, they are not needed and you can
> just the more universal and portable UNIX APIs or those of libraries above
> them (e.g: gtk+).

OK, thanks.  For the moment, I'll not bother, as I doubt I'll be doing anything
specific to need them.

MB
--
e-mail: vidiot@...                                /~\ The ASCII
[I've been to Earth.  I know where it is.         ]      \ / Ribbon Campaign
[And I'm gonna take us there.    Starbuck  3/25/07]       X  Against
Visit - URL: http://vidiot.com/                          / \ HTML Email

#26740 From: "tshanthala" <tshanthala@...>
Date: Thu Dec 31, 2009 1:22 pm
Subject: Perl Book For Reference
tshanthala
Send Email Send Email
 
hi,

I am interested in learning perl.

Please let me know which is the best book for reference.


Thanks,
shanthala

#26741 From: Shlomi Fish <shlomif@...>
Date: Thu Dec 31, 2009 2:17 pm
Subject: Re: [PBML] Perl Book For Reference
shlomif2
Send Email Send Email
 
Hi Shanthala!

Welcome aboard!

On Thursday 31 Dec 2009 15:22:20 tshanthala wrote:
> hi,
>
> I am interested in learning perl.
>
> Please let me know which is the best book for reference.
>

The canonical reference for Perl is the built-in documentation (the so-called
perldocs). You can view it on your system by typing:

<<<
perldoc perl
>>>

See:

<<<
perldoc perldoc
>>>

for instructions. You can also view the perldocs online on:

http://perldoc.perl.org/

Another reference book that only covers perl-5.6.x (there's already
perl-5.10.x and perl-5.12.x should be out soon) is "Programming Perl, 3rd
Edition". See here for details:

http://perl-begin.org/core-doc/

For more information about learning Perl see:

http://perl-begin.org/

Regards,

	 Shlomi Fish

--
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
What does "Zionism" mean? - http://shlom.in/def-zionism

Bzr is slower than Subversion in combination with Sourceforge.
( By: http://dazjorz.com/ )

#26742 From: riam budhi <riamwisnu@...>
Date: Thu Dec 31, 2009 2:19 pm
Subject: Re: [PBML] Perl Book For Reference
mbah_jiman2000
Send Email Send Email
 
please to click this site

www.flazx.com


salam
Abdul Syukur

On Thu, Dec 31, 2009 at 8:22 PM, tshanthala <tshanthala@...> wrote:

>
>
> hi,
>
> I am interested in learning perl.
>
> Please let me know which is the best book for reference.
>
> Thanks,
> shanthala
>
>
>


[Non-text portions of this message have been removed]

#26743 From: merlyn@...
Date: Thu Dec 31, 2009 4:29 pm
Subject: Re: [PBML] Perl Book For Reference
merlynstoneh...
Send Email Send Email
 
>>>>> "riam" == riam budhi <riamwisnu@...> writes:

riam> please to click this site
riam> [redacted]

Thank you for offending me in the biggest way you could possibly do,
by linking to *pirated* copies of my books.

You take money directly from my pocket, and yet you pretend you're not a
thief.

Sir, you are a thief.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

#26744 From: marquee7_2000@...
Date: Thu Dec 31, 2009 6:27 pm
Subject: Re: [PBML] Perl Book For Reference
marquee7_2000
Send Email Send Email
 
All of the O'Reilly books are good...
Sent from my BlackBerry Smartphone provided by Alltel

-----Original Message-----
From: "tshanthala" <tshanthala@...>
Date: Thu, 31 Dec 2009 13:22:20
To: <perl-beginner@yahoogroups.com>
Subject: [PBML] Perl  Book  For  Reference

hi,

I am interested in learning perl.

Please let me know which is the best book for reference.


Thanks,
shanthala




[Non-text portions of this message have been removed]

#26746 From: "ricardohenrylee" <richard@...>
Date: Tue Jan 19, 2010 10:53 am
Subject: Compiling perl on cygwin: hanging on test ext/threads-shared/t/stress.t
ricardohenrylee
Send Email Send Email
 
Hi perl-beginners,

I'm compiling Perl 5.10.1 on cygwin 1.7.1 . I know there is the precompiled one
availiable for Cygwin, but it was not compiled with the flags I needed.

The problem is at the testing stage. It's not exactly failing. On the test
ext/threads-shared/t/stress.t, it just does not do anything, it just hangs.

In the INSTALL file under timing problems, it mentions that the test may fail.
But does hanging count as failing?

I remember compiling 5.10.1 sucessfully on Cygwin 1.6.5 after several attempts.
Then I had problems ext/Time-HiRes/t/HiRes.t, one of the tests you may fail if
you again have timing problems. But at that time I was actually failing the test
and it was not hanging.

My computer is not top notch, but it's not too slow. It's a 3GHz PC running XP
SP3 and I keep it really lean.

Regards,

Richard

#26750 From: "GoPi" <gopichand84@...>
Date: Tue Jan 26, 2010 1:39 am
Subject: Perl script to read
gopichand84
Send Email Send Email
 
Hi friends,

Hopeeveryone is doing good.

1.I have an excel sheet in 2003 with columns like below

  A Yes
  B No
  C Yes
  D Yes

2.I have a file "sample.txt" which contains all the leters like below

A
B
C
D

Now,I my objective is to write a perl script to output only the letters that are
listed as "Yes" in my excel sheet.Can some pls help to give me a starting point?

Thanks

#26751 From: merlyn@...
Date: Tue Jan 26, 2010 1:56 am
Subject: Re: [PBML] Perl script to read
merlynstoneh...
Send Email Send Email
 
>>>>> "GoPi" == GoPi  <gopichand84@...> writes:

GoPi> 1.I have an excel sheet in 2003 with columns like below

GoPi>  A Yes
GoPi>  B No
GoPi>  C Yes
GoPi>  D Yes

GoPi> 2.I have a file "sample.txt" which contains all the leters like below

GoPi> A
GoPi> B
GoPi> C
GoPi> D

GoPi> Now,I my objective is to write a perl script to output only the letters
GoPi> that are listed as "Yes" in my excel sheet.Can some pls help to give me
GoPi> a starting point?

How much of the documentation for Spreadsheet::ParseExcel have you read and
understood?  Do you have specific questions about that module?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

#26752 From: Jeff Soules <soules@...>
Date: Tue Jan 26, 2010 2:01 am
Subject: Re: [PBML] Perl script to read
soules@...
Send Email Send Email
 
I would begin by saving the excel file in a plain text format. Tab-
delimited would likely work well, if this is a complete description of
the doc (if there aren't any tabs or anything).

Then I would read the file in line by line and use split to get the
two columns (these are 2 columns right?) into separate fields. Use
regex or string comparison (eq) to see if the second field is yes, and
if it is, print the first field.

There are no doubt more robust solutions, but something along these
lines ought to get you started if it's just a quickie.

Good luck.

On Jan  25, 2010, at 8:39 PM, "GoPi" <gopichand84@...> wrote:

> Hi friends,
>
> Hopeeveryone is doing good.
>
> 1.I have an excel sheet in 2003 with columns like below
>
> A Yes
> B No
> C Yes
> D Yes
>
> 2.I have a file "sample.txt" which contains all the leters like below
>
> A
> B
> C
> D
>
> Now,I my objective is to write a perl script to output only the
> letters that are listed as "Yes" in my excel sheet.Can some pls help
> to give me a starting point?
>
> Thanks
>
>


[Non-text portions of this message have been removed]

#26753 From: gopi chand <gopichand84@...>
Date: Tue Jan 26, 2010 2:19 am
Subject: Re: [PBML] Perl script to read
gopichand84
Send Email Send Email
 
Hi Merlyn ,

Thanks for the reply.I havent' read that documentation but I started of with a
sample pl script I got over the internet but I am getting the following message
while running the script
What am I missing?

Can't locate Spreadsheet/Read.pm in @INC (@INC contains: C \Program
Files\ActiveState Perl Dev Kit 6.0\lib\
/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int /usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/cygwin-thread-multi-64int
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/cygwin-thread-multi-64int
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .) at sample.pl line
4.


--- On Mon, 1/25/10, merlyn@... <merlyn@...> wrote:

From: merlyn@... <merlyn@...>
Subject: Re: [PBML] Perl script to read
To: "GoPi" <gopichand84@...>
Cc: perl-beginner@yahoogroups.com
Date: Monday, January 25, 2010, 5:56 PM







 









       >>>>> "GoPi" == GoPi  <gopichand84@ yahoo.com> writes:



GoPi> 1.I have an excel sheet in 2003 with columns like below



GoPi>  A Yes

GoPi>  B No

GoPi>  C Yes

GoPi>  D Yes



GoPi> 2.I have a file "sample.txt" which contains all the leters like below



GoPi> A

GoPi> B

GoPi> C

GoPi> D



GoPi> Now,I my objective is to write a perl script to output only the letters

GoPi> that are listed as "Yes" in my excel sheet.Can some pls help to give me

GoPi> a starting point?



How much of the documentation for Spreadsheet: :ParseExcel have you read and

understood?  Do you have specific questions about that module?



--

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095

<merlyn@stonehenge. com> <URL:http://www.stonehen ge.com/merlyn/>

Smalltalk/Perl/ Unix consulting, Technical writing, Comedy, etc. etc.

See http://methodsandme ssages.vox. com/ for Smalltalk and Seaside discussion























[Non-text portions of this message have been removed]

#26754 From: merlyn@...
Date: Tue Jan 26, 2010 2:22 am
Subject: Re: [PBML] Perl script to read
merlynstoneh...
Send Email Send Email
 
>>>>> "gopi" == gopi chand <gopichand84@...> writes:

gopi> What am I missing?

Looks like you're missing Spreadsheet::Read.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

#26755 From: gopi chand <gopichand84@...>
Date: Tue Jan 26, 2010 2:22 am
Subject: Re: [PBML] Perl script to read
gopichand84
Send Email Send Email
 
Thanks for the reply Jeff.

I don't want to print all the letters in the first column which have an "yes" in
second column,I only want to print the ones in sample.txt file,how are we taking
care of this condition?


--- On Mon, 1/25/10, Jeff Soules <soules@...> wrote:

From: Jeff Soules <soules@...>
Subject: Re: [PBML] Perl script to read
To: "perl-beginner@yahoogroups.com" <perl-beginner@yahoogroups.com>
Date: Monday, January 25, 2010, 6:01 PM







 









       I would begin by saving the excel file in a plain text format. Tab-

delimited would likely work well, if this is a complete description of

the doc (if there aren't any tabs or anything).



Then I would read the file in line by line and use split to get the

two columns (these are 2 columns right?) into separate fields. Use

regex or string comparison (eq) to see if the second field is yes, and

if it is, print the first field.



There are no doubt more robust solutions, but something along these

lines ought to get you started if it's just a quickie.



Good luck.



On Jan  25, 2010, at 8:39 PM, "GoPi" <gopichand84@ yahoo.com> wrote:



> Hi friends,

>

> Hopeeveryone is doing good.

>

> 1.I have an excel sheet in 2003 with columns like below

>

> A Yes

> B No

> C Yes

> D Yes

>

> 2.I have a file "sample.txt" which contains all the leters like below

>

> A

> B

> C

> D

>

> Now,I my objective is to write a perl script to output only the

> letters that are listed as "Yes" in my excel sheet.Can some pls help

> to give me a starting point?

>

> Thanks

>

>



[Non-text portions of this message have been removed]

























[Non-text portions of this message have been removed]

#26756 From: gopi chand <gopichand84@...>
Date: Tue Jan 26, 2010 2:23 am
Subject: Re: [PBML] Perl script to read
gopichand84
Send Email Send Email
 
How do I install it?




--- On Mon, 1/25/10, merlyn@... <merlyn@...> wrote:

From: merlyn@... <merlyn@...>
Subject: Re: [PBML] Perl script to read
To: "gopi chand" <gopichand84@...>
Cc: perl-beginner@yahoogroups.com
Date: Monday, January 25, 2010, 6:22 PM







 









       >>>>> "gopi" == gopi chand <gopichand84@ yahoo.com> writes:



gopi> What am I missing?



Looks like you're missing Spreadsheet: :Read.



--

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095

<merlyn@stonehenge. com> <URL:http://www.stonehen ge.com/merlyn/>

Smalltalk/Perl/ Unix consulting, Technical writing, Comedy, etc. etc.

See http://methodsandme ssages.vox. com/ for Smalltalk and Seaside discussion























[Non-text portions of this message have been removed]

#26757 From: merlyn@...
Date: Tue Jan 26, 2010 2:23 am
Subject: Re: [PBML] Perl script to read
merlynstoneh...
Send Email Send Email
 
>>>>> "Jeff" == Jeff Soules <soules@...> writes:

Jeff> I would begin by saving the excel file in a plain text format.

No, Perl can read native Excel sheets just fine, thanks to the nice libraries
in the CPAN.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

#26758 From: merlyn@...
Date: Tue Jan 26, 2010 2:28 am
Subject: Re: [PBML] Perl script to read
merlynstoneh...
Send Email Send Email
 
>>>>> "gopi" == gopi chand <gopichand84@...> writes:

gopi> How do I install it?

"perldoc perlmodinstall"

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

#26759 From: gopi chand <gopichand84@...>
Date: Tue Jan 26, 2010 3:14 am
Subject: Re: [PBML] Perl script to read
gopichand84
Send Email Send Email
 
I am getting the same error message even after running perldoc perlmodinstall

Will the above command install the required mods are do I have read something
and install some other commands?Pls let me know



--- On Mon, 1/25/10, merlyn@... <merlyn@...> wrote:

From: merlyn@... <merlyn@...>
Subject: Re: [PBML] Perl script to read
To: "gopi chand" <gopichand84@...>
Cc: perl-beginner@yahoogroups.com
Date: Monday, January 25, 2010, 6:28 PM







 









       >>>>> "gopi" == gopi chand <gopichand84@ yahoo.com> writes:



gopi> How do I install it?



"perldoc perlmodinstall"



--

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095

<merlyn@stonehenge. com> <URL:http://www.stonehen ge.com/merlyn/>

Smalltalk/Perl/ Unix consulting, Technical writing, Comedy, etc. etc.

See http://methodsandme ssages.vox. com/ for Smalltalk and Seaside discussion























[Non-text portions of this message have been removed]

#26760 From: Francis Kayiwa <francis.kayiwa@...>
Date: Tue Jan 26, 2010 3:23 am
Subject: Re: [PBML] Perl script to read
francis.kayiwa@...
Send Email Send Email
 
On Mon, Jan 25, 2010 at 9:14 PM, gopi chand <gopichand84@...> wrote:
>
>
>
> I am getting the same error message even after running perldoc perlmodinstall
>
> Will the above command install the required mods are do I have read something
and install some other commands?Pls let me know

If you ran perldoc perlmodinstall

it should help you find out if

a) the module is installed on your system..

...
PREAMBLE
        First, are you sure that the module isn't already on your
        system?  Try "perl -MFoo -e 1".  (Replace "Foo" with the
        name of the module; for instance, "perl -MCGI::Carp -e 1".
...

Substitute  CGI::Carp with the module we are discussing.

If it isn't you should read further down on the steps needed to install it.

regards,
./fxk

--
=====
Past hissy-fits are not a predictor of future hissy-fits --Nick Holland

#26761 From: merlyn@...
Date: Tue Jan 26, 2010 4:20 am
Subject: Re: [PBML] Perl script to read
merlynstoneh...
Send Email Send Email
 
>>>>> "gopi" == gopi chand <gopichand84@...> writes:

gopi> I am getting the same error message even after running perldoc
perlmodinstall

gopi> Will the above command install the required mods are do I have read
something and install some other commands?Pls let me know

"perldoc perlmodinstall" is instructions to you about how to obtain
and install modules.  Please read.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

#26762 From: Jeff Soules <soules@...>
Date: Tue Jan 26, 2010 4:36 am
Subject: Re: [PBML] Perl script to read
soules@...
Send Email Send Email
 
> I don't want to print all the letters in the first column which have an "yes"
in second column,I only want to print the ones in sample.txt file,how are we
taking care of this condition?

Ahh.  I was wondering how the second file figured in this whole business.
Do the order of the letters in the second file matter?  i.e. is your goal:

if the letter is next to "yes" in your excel file AND
the letter appears somewhere in the second file, THEN
output the letter?

If so, I would read the letters in the second file and load them into
a hash (%lettersHash, perhaps.)
Then go back and read the excel file through one of the methods
discussed previously (the method you choose shouldn't affect your
results for the problem as you've described it, There's More Than One
Way To Do It, etc).
For each row/record of the excel file, if the value of the second
column is "yes," check if the value in the first column is in
%lettersHash.  If it is, output the letter.  If not, read the next
record.

On the other hand, if you want to do something more complicated (like
if the order of the second file matters -- say you only output the
letter if row N of the excel file says "A Yes" and row N of the second
file says "A"), then please describe your problem in more detail.


good luck,
jeff

On Mon, Jan 25, 2010 at 9:22 PM, gopi chand <gopichand84@...> wrote:
>
>
> Thanks for the reply Jeff.
>
> I don't want to print all the letters in the first column which have an "yes"
in second column,I only want to print the ones in sample.txt file,how are we
taking care of this condition?
>
>
> --- On Mon, 1/25/10, Jeff Soules <soules@...> wrote:
>
> From: Jeff Soules <soules@...>
> Subject: Re: [PBML] Perl script to read
> To: "perl-beginner@yahoogroups.com" <perl-beginner@yahoogroups.com>
> Date: Monday, January 25, 2010, 6:01 PM
>
>
>
> I would begin by saving the excel file in a plain text format. Tab-
> delimited would likely work well, if this is a complete description of
> the doc (if there aren't any tabs or anything).
>
> Then I would read the file in line by line and use split to get the
> two columns (these are 2 columns right?) into separate fields. Use
> regex or string comparison (eq) to see if the second field is yes, and
> if it is, print the first field.
>
> There are no doubt more robust solutions, but something along these
> lines ought to get you started if it's just a quickie.
>
> Good luck.
>
> On Jan 25, 2010, at 8:39 PM, "GoPi" <gopichand84@ yahoo.com> wrote:
>
> > Hi friends,
> >
> > Hopeeveryone is doing good.
> >
> > 1.I have an excel sheet in 2003 with columns like below
> >
> > A Yes
> > B No
> > C Yes
> > D Yes
> >
> > 2.I have a file "sample.txt" which contains all the leters like below
> >
> > A
> > B
> > C
> > D
> >
> > Now,I my objective is to write a perl script to output only the
> > letters that are listed as "Yes" in my excel sheet.Can some pls help
> > to give me a starting point?
> >
> > Thanks

#26763 From: Shlomi Fish <shlomif@...>
Date: Tue Jan 26, 2010 9:50 am
Subject: Re: [PBML] Perl script to read
shlomif2
Send Email Send Email
 
On Tuesday 26 Jan 2010 04:19:56 gopi chand wrote:
> Hi Merlyn ,
>
> Thanks for the reply.I havent' read that documentation but I started of
> with a sample pl script I got over the internet but I am getting the
> following message while running the script What am I missing?
>
> Can't locate Spreadsheet/Read.pm in @INC (@INC contains: C \Program
> Files\ActiveState Perl Dev Kit 6.0\lib\
> /usr/lib/perl5/5.8.5/cygwin-thread-multi-64int /usr/lib/perl5/5.8.5
> /usr/lib/perl5/site_perl/5.8.5/cygwin-thread-multi-64int
> /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.5/cygwin-thread-multi-64int
> /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .) at
> sample.pl line 4.

Hi Gopi!

1. Please read: http://perl-begin.org/topics/cpan/ and be enlightened.

2. perl-5.8.5 is really old, you really should upgrade to perl-5.8.9 or
perl-5.10.1.

Regards,

	 Shlomi Fish

>
>
> --- On Mon, 1/25/10, merlyn@... <merlyn@...> wrote:
>
> From: merlyn@... <merlyn@...>
> Subject: Re: [PBML] Perl script to read
> To: "GoPi" <gopichand84@...>
> Cc: perl-beginner@yahoogroups.com
> Date: Monday, January 25, 2010, 5:56 PM
>
>
>
>
>
>
>
>
>
>       >>>>> "GoPi" == GoPi  <gopichand84@ yahoo.com> writes:
> GoPi> 1.I have an excel sheet in 2003 with columns like below
>
>
>
> GoPi>  A Yes
>
> GoPi>  B No
>
> GoPi>  C Yes
>
> GoPi>  D Yes
>
>
>
> GoPi> 2.I have a file "sample.txt" which contains all the leters like below
>
>
>
> GoPi> A
>
> GoPi> B
>
> GoPi> C
>
> GoPi> D
>
>
>
> GoPi> Now,I my objective is to write a perl script to output only the
> letters
>
> GoPi> that are listed as "Yes" in my excel sheet.Can some pls help to give
> me
>
> GoPi> a starting point?
>
>
>
> How much of the documentation for Spreadsheet: :ParseExcel have you read
> and
>
> understood?  Do you have specific questions about that module?

--
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Freecell Solver - http://fc-solve.berlios.de/

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

#26764 From: Shameem Ahamed <shameem.ahamed@...>
Date: Tue Jan 26, 2010 6:19 pm
Subject: Perl forking acting wierd
shameem.ahamed
Send Email Send Email
 
Hi All,

I have a subroutine to create a daemon, subroutine is pasted below.

ub Daemonize() {

         my $pid;
         $pid=fork();
         if(! defined($pid)){
                 #Forking Failed, we exit at this point
                 die("forking failed\n");
                 exit(1);
         }
         if ($pid>0) {
                 print LOG "Forking Success. Child PID: $pid \n";
                 exit();
         }

         $|=1;

         print LOG "Child Process Executing... \n";
         setsid();
         chdir('/');
         umask(0);

         close(STDIN);
         close(STDOUT);
         close(STDERR);
}


I ran in to an issue in this code. In the child process (which becomes the
session leader), I am not getting any data logged or the child process is not
able to call even the other functions.

Can anyone please help me ?.

Shammi

Messages 26731 - 26764 of 27470   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help