RE: eval problem

2006-06-27 Thread Jorge Almeida
On Tue, 27 Jun 2006, Smith, Derek wrote: So could this `$SIG{'PIPE'}="IGNORE";' be considered a global similar to $ENV{"PATH"} = qq(/opt/SUNWsamfs/sbin:/usr/bin); Yes, %SIG is a global hash. Jorge -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

RE: eval problem

2006-06-27 Thread Smith, Derek
-Original Message- From: Jorge Almeida [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 9:37 AM To: John W. Krahn Cc: Perl Beginners Subject: Re: eval problem On Tue, 27 Jun 2006, John W. Krahn wrote: > Jorge Almeida wrote: >> What is happening? > > When find

Re: eval problem

2006-06-27 Thread Jorge Almeida
On Tue, 27 Jun 2006, John W. Krahn wrote: Jorge Almeida wrote: What is happening? When find dies a SIGPIPE signal is sent to the parent process which kills it. Thank you. Putting `$SIG{'PIPE'}="IGNORE";' in the beginning of my program solves my problem. Jorge -- To unsubscribe, e-mail

Re: eval problem

2006-06-27 Thread John W. Krahn
Jorge Almeida wrote: > Can someone help me to understand what's wrong with this? (Or: what I > didn't understand about eval?) > > $ perl -e 'use strict;use warnings;eval{open(OUT,"|file")};eval{print > OUT "aa\n";};eval{close OUT};;' > Usage: file [-bcikLnNsvz] [-f namefile] [-F separator] [-m mag

Re: Please Stop (was: Re: eval problem)

2001-10-04 Thread Michael D. Risser
--SNIP-- > Personally, I don't want to put a lid on any discussion. I think the > characteristic which distinguishes this list as a beginners' list is not > the level of the *response*, but rather the willingness of the respondants > to address any *question*. > > Thanks, > Nelson And to do so i

Re: Please Stop (was: Re: eval problem)

2001-10-04 Thread RoadRaat
In a message dated Tue, 2 Oct 2001 6:03:06 PM Eastern Daylight Time, Curtis Poe <[EMAIL PROTECTED]> writes: > Mea Culpa. > > While I do have some reservations about how prototypes were used in a particular >example, I'll try > to be more sensitive about the "beginners" aspect of things. Curt

Re: eval problem

2001-10-03 Thread Michael Fowler
On Wed, Oct 03, 2001 at 11:01:48AM +0530, [EMAIL PROTECTED] wrote: > so my earlier effort was basically to find out how we can capture the > output of "eval($temp)" into a Perl variable, ...this variable could later > be taken from the Perl stack ,converted into a C string and sent through > the p

Re: eval problem

2001-10-02 Thread minid
Hi everybody, Thanks for sending the reply , but I think the problem is misunderstood ..thanks to the stupid way I which I put forward my problem!! this is our case we are trying to develop a Command line Interface for a simulator , the requirements are that the CLI as to be writ

Re: Please Stop (was: Re: eval problem)

2001-10-02 Thread Mel Matsuoka
At 03:23 PM 10/02/2001 -0700, Michael Kelly wrote: >Well, being somewhat of a beginner myself, I think it is very helpful to >look at stuff that's above your head. I certainly don't mind the fact that >80% of the stuff on this list is above me, and I think that, when I do start >dealing with some

Re: Please Stop (was: Re: eval problem)

2001-10-02 Thread Michael Kelly
> While this is true, it's seldom clear to the beginner when this list has > diverted to esoterica. It's *critical* for a beginner to know what they > *don't* need to pay attention to at the beginning, and we do them a > disservice by commingling easy and not-so-easy stuff. > > So I'd back Zande

Re: Please Stop (was: Re: eval problem)

2001-10-02 Thread Curtis Poe
--- Zander Collier <[EMAIL PROTECTED]> wrote: > With all due respect, if you're going to discuss the minutae, > nuances, and other "advanced" Perl stuff, could you please do > so on another list? > > This is [EMAIL PROTECTED] Mea Culpa. While I do have some reservations about how prototypes wer

Re: Please Stop (was: Re: eval problem)

2001-10-02 Thread Peter Scott
At 05:56 PM 10/2/01 -0400, Brett W. McCoy wrote: >On Wed, 3 Oct 2001, Zander Collier wrote: > > > With all due respect, if you're going to discuss the minutae, > > nuances, and other "advanced" Perl stuff, could you please do > > so on another list? > >I'm inclined to agree... however, I think it

Re: Please Stop (was: Re: eval problem)

2001-10-02 Thread Brett W. McCoy
On Wed, 3 Oct 2001, Zander Collier wrote: > With all due respect, if you're going to discuss the minutae, > nuances, and other "advanced" Perl stuff, could you please do > so on another list? I'm inclined to agree... however, I think it is helpful for beginners also to be amongst more advanced c

Please Stop (was: Re: eval problem)

2001-10-02 Thread Zander Collier
With all due respect, if you're going to discuss the minutae, nuances, and other "advanced" Perl stuff, could you please do so on another list? This is [EMAIL PROTECTED] Publicly arguing this sort of thing on this list, at least to me, makes it more intimidating to post what will be my silly neo

Re: eval problem

2001-10-02 Thread Michael Fowler
> One of the problems with prototypes is that they are not prototypes, at > least not in the sense that other programming languages use them. I am aware of this "problem", which, personally, I don't consider a problem, because it is documented fairly clearly. > Instead, they allow us, amongt o

Re: eval problem

2001-10-02 Thread Curtis Poe
--- Michael Fowler <[EMAIL PROTECTED]> wrote: > You could also make your own print function that appends to the variable of > your choice: > > sub append_and_print (\$@) { > my($var_ref, @stuff_to_print) = @_; > > $$var_ref = '' unless defined($$var_ref); > my $sep =

Re: eval problem

2001-10-02 Thread Michael Fowler
On Mon, Oct 01, 2001 at 07:46:24PM +0530, [EMAIL PROTECTED] wrote: > Instead of this behaviour of eval, Can I get what I want .i.e.. Can I > capture the output in some variable. Like here I am printing "hi" on > stdout. But I want this "hi" to be stored in some variable also. So you want to store

RE: eval problem

2001-10-02 Thread Crowder, Rod
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 01 October 2001 15:16 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: eval problem > > > > > Hi everybody, > > I am facing a little problem with eval in perl. > > say I do the following: