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
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
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
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
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.
>
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
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
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
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
> @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]
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
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
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
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
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 ``
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
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
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
18 matches
Mail list logo