Re: Statement failure inside a loop

2015-06-18 Thread Илья Рассадин
I think, even better if initialize magic numbers and symbols use constant NEWLINE_SYMBOL => chr(10); use constant SOME_MEANINGFULL_NAME => ; чт, 18 июня 2015 г. в 16:54, Shlomi Fish : > Hi Marco, > > see below for my response. > On Thu, 18 Jun 2015 15:17:27 +0200 > Marco wrote: > > > Hello

Re: Statement failure inside a loop

2015-06-18 Thread Shlomi Fish
Hi Marco, see below for my response. On Thu, 18 Jun 2015 15:17:27 +0200 Marco wrote: > Hello. > > I need some help in understanding why the first > > my ($Count,$Saw)=$self->{_Portobj}->read(1); > > is executed without any problem , however the second identical statement > inside the whil

Re: Statement execution...

2003-03-27 Thread Rob Dixon
Richard C 1 wrote: > I think I'm right, but I want to verify it. I'm learning PERL on my own > and "decomposing" some programs to see how they "flow". My question is - > given the following program "structure", what will print out? > > Print "one" > Subroutine aa > print "two" > End > Print "thre

Re: Statement execution...

2003-03-27 Thread Pete Emerson
Here you go, and your guess as to what prints out is right on; subroutines don't run until they're called, and placement in this situation doesn't affect anything. #!/usr/bin/perl -w use strict; print "one\n"; sub aa { print "two\n"; } print "three\n"; print "four\n"; sub bb { prin

RE: statement

2002-10-07 Thread Javeed SAR
Thanks to all of you, especially Gibbs. I got it. Regards j -Original Message- From: Sudarshan Raghavan [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 1:46 PM To: Perl beginners Subject: RE: statement On Mon, 7 Oct 2002, Javeed SAR wrote: > sorry about that. >

RE: statement

2002-10-07 Thread Sudarshan Raghavan
are: Attributes in VOB train > $cmd2 COntents are: SYNC_CHECK > > > > > Regards > j > > > -Original Message- > From: Sudarshan Raghavan [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 07, 2002 1:01 PM > To: Perl beginners > Subject: RE: stat

RE: statement

2002-10-07 Thread Javeed SAR
To: Perl beginners Subject: RE: statement On Mon, 7 Oct 2002, Javeed SAR wrote: > > > This is my script, what changes should i make. How am I supposed to say that if you are not going to post the error message? > > > #+ > #!c:\perl\bin\perl Have you trie

Re: statement

2002-10-07 Thread Tanton Gibbs
s" <[EMAIL PROTECTED]> Sent: Monday, October 07, 2002 3:27 AM Subject: RE: statement > No error messages, > It prints: > > cleartool desc attype:SYNC_CHECK@vob://train > > > Regards > j > > > > > > -Original Message- > From: Tanton Gi

Re: statement

2002-10-07 Thread Tanton Gibbs
What does your error message say? - Original Message - From: "Javeed SAR" <[EMAIL PROTECTED]> To: "Tanton Gibbs" <[EMAIL PROTECTED]>; "Sudarshan Raghavan" <[EMAIL PROTECTED]>; "Perl beginners" <[EMAIL PROTECTED]> Sent: Mond

Re: statement

2002-10-07 Thread Tanton Gibbs
> @cmd_merge=`cleartool lstype -kind attype -s -invob \\$cmd1`; Here you use backslashes \\ > @attt = "cleartool desc attype:$cmd2\@vob://$cmd1"; Here you use forwardslashes // Why the change? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: statement

2002-10-07 Thread Sudarshan Raghavan
On Mon, 7 Oct 2002, Javeed SAR wrote: > > > This is my script, what changes should i make. How am I supposed to say that if you are not going to post the error message? > > > #+ > #!c:\perl\bin\perl Have you tried use strict; and use warnings;. They might throw out something int

RE: statement

2002-10-07 Thread Javeed SAR
No error messages, It prints: cleartool desc attype:SYNC_CHECK@vob://train Regards j -Original Message- From: Tanton Gibbs [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 12:53 PM To: Javeed SAR; Sudarshan Raghavan; Perl beginners Subject: Re: statement What does your

RE: statement

2002-10-06 Thread Javeed SAR
nton Gibbs [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 12:45 PM To: Javeed SAR; Sudarshan Raghavan; Perl beginners Subject: Re: statement > @cmd_merge=`cleartool lstype -kind attype -s -invob \\$cmd1`; Here you use backslashes \\ > @attt = "cleartool desc attype:$cmd

RE: statement

2002-10-06 Thread Javeed SAR
j -Original Message- From: Sudarshan Raghavan [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 11:35 AM To: Perl beginners Subject: Re: statement On Mon, 7 Oct 2002, Dharmender Rai wrote: > your string is not getting interpolated for $cmd2 > bacause you are using

Re: statement

2002-10-06 Thread Dharmender Rai
Yes you are right. I got confused while replying to that original mail. Thanx for enlightning me :) Dharmender Rai --- Sudarshan Raghavan <[EMAIL PROTECTED]> wrote: > On Mon, 7 Oct 2002, Dharmender Rai wrote: > > > your string is not getting interpolated for $cmd2 > > bacause you are using ``

Re: statement

2002-10-06 Thread Sudarshan Raghavan
On Mon, 7 Oct 2002, Dharmender Rai wrote: > your string is not getting interpolated for $cmd2 > bacause you are using `` instead of '' or "" . If you > want to use `` then don't use $cmd2 or split the > string into many. Variables do get interpolated inside backticks. They do not get interpolat

Re: statement

2002-10-06 Thread Dharmender Rai
your string is not getting interpolated for $cmd2 bacause you are using `` instead of '' or "" . If you want to use `` then don't use $cmd2 or split the string into many. --- Javeed SAR <[EMAIL PROTECTED]> wrote: > Hi All, > > > I am executing a command from command line, it > working fine,whe

Re: Statement vs Express appends on Ternary Regex Evaluation

2002-07-08 Thread Connie Chan
Hi Japhy, Sigh... as what I said I am poor in English =) But I am interested about the difference of BLOCK(statement) and EXPRESSION... Would you give me an example ? Rgds, Connie > I think you mean 'do { ... } : do { ... }'. Perl is expecting > EXPRESSIONS, not statements, and a block