Message-
> From: CM Analyst [mailto:cmanal...@yahoo.com]
> Sent: Thursday, January 27, 2011 6:25 PM
> To: Parag Kalra
> Cc: beginners@perl.org
> Subject: Re: Need help with Use of uninitialized value in concatenation
> (.) or string
>
> This is a sample of the data I a
-84f9e0f6609e;|]
com.raec.cq.CQCommitException: You wanted to commit a modifyCR based record,
but the record was
not found in the ClearQuest Database.
--- On Thu, 1/27/11, Parag Kalra wrote:
From: Parag Kalra
Subject: Re: Need help with Use of uninitialized value in concatenation (.) or
string
To: &qu
When you are already storing the line under $line
>>>while(( my $line = )) {
Then why are you using $_
>>>my @fields = split '\|', $_;
Cheers,
Parag
On Thu, Jan 27, 2011 at 12:57 PM, CM Analyst wrote:
> Hello,
>
> In the following script my goal is pull the date value each time an error
> va
Can you send an example of the data in the log file?
tm
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Hello,
In the following script my goal is pull the date value each time an error value
(hardcoded) is found in the specified log file. The script retrieves the error
value without a problem but I cannot seem get the date value. Can anyone tell
me what I need to do?
The error message when I run
BOLCATO CHRIS (esm1cmb) wrote:
I added
1;
Inside sub foo and it didn't work, but I just added it to the end of foo.pl
and it worked!
I don't get it?
the 1; at the end of a file you're sue()ing returns true for the use
statement. otherwise it won't be true and therefore fail..
HTH
Lee.M - Jupit
On Fri, 9 Jul 2004 13:36:26 -0400 , Bob Showalter wrote
> BOLCATO CHRIS (esm1cmb) wrote:
> > I am receiving "/home/users/me/foo.pl did not return a true value at
> > ./program1.pl at line 2"
> > where line 2 is the "require".
>
> That's the semantics of "require" (see perldoc -f require).
>
> Th
e error when it "couldn't"
(aka it thought it couldn't because it didn't return true).
> But thanks.
>
Makes sense?
http://danconia.org
> -Original Message-
> From: Bob Showalter [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 09, 2004 1
D]
Subject: RE: Help with "use"
BOLCATO CHRIS (esm1cmb) wrote:
> It doesn't seem to be foo.pl that is causing the error is seems to be
> coming from "use AnyDBM_File;"
Why do you say that?
> Could this be? That AnyDBM_File doesn't return a true vlaue?
Di
BOLCATO CHRIS (esm1cmb) wrote:
> It doesn't seem to be foo.pl that is causing the error is seems to be
> coming from "use AnyDBM_File;"
Why do you say that?
> Could this be? That AnyDBM_File doesn't return a true vlaue?
Did you add
1;
To the end of foo.pl? You need to.
--
To unsubscribe,
PM
To: BOLCATO CHRIS (esm1cmb); 'Wiggins d Anconia'; [EMAIL PROTECTED]
Subject: RE: Help with "use"
BOLCATO CHRIS (esm1cmb) wrote:
> I am receiving "/home/users/me/foo.pl did not return a true value at
> ./program1.pl at line 2" where line 2 is the "require
BOLCATO CHRIS (esm1cmb) wrote:
> I am receiving "/home/users/me/foo.pl did not return a true value at
> ./program1.pl at line 2"
> where line 2 is the "require".
That's the semantics of "require" (see perldoc -f require).
The standard idiom is to place
1;
at the end of foo.pl, so that the la
BOLCATO CHRIS (esm1cmb) wrote:
> Hello all,
> Can "use" be used in a sub routine that is kept external?
Yes.
> Ex.
> Program 1.
>
> #!/bin/perl
> require '/home/users/me/foo.pl';
> exit;
>
>
> Foo.pl
>
> sub bar {
> use strict;
> use fcntl;
> use AnyDBM_File;
> }
This would not be a typical
b); [EMAIL PROTECTED]
Subject: Re: Help with "use"
>
> Hello all,
> Can "use" be used in a sub routine that is kept external?
> Ex.
> Program 1.
>
> #!/bin/perl
> require '/home/users/me/foo.pl';
> exit;
>
>
> Foo.pl
>
> s
>
> Hello all,
> Can "use" be used in a sub routine that is kept external?
> Ex.
> Program 1.
>
> #!/bin/perl
> require '/home/users/me/foo.pl';
> exit;
>
>
> Foo.pl
>
> sub bar {
> use strict;
> use fcntl;
> use AnyDBM_File;
> }
>
Did you try it? Did it return an error? Note that 'require'
Hello all,
Can "use" be used in a sub routine that is kept external?
Ex.
Program 1.
#!/bin/perl
require '/home/users/me/foo.pl';
exit;
Foo.pl
sub bar {
use strict;
use fcntl;
use AnyDBM_File;
}
Tin-Shan Chau <[EMAIL PROTECTED]> wrote:
> I have a module as follows:
>
> package Test;
> require Exporter;
> our @ISA = qw(Exporter);
> our @EXPORT = qw(print_name print_test);
> sub print_test() {
>print "test\n";
> }
> sub print_name() {
>my $f
's possible that Perl
thinks you're trying to prototype and define your subroutine at the same
time, in which case you're telling it that print_test() takes no parameters.
-Original Message-
From: Tin-Shan Chau [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 13, 2002 8:5
I have a module as follows:
>>>
package Test;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT = qw(print_name print_test);
sub print_test() {
print "test\n";
}
sub print_name() {
my $file = shift;
print "$file\n";
}
fast relief to computer stress call Up & Running
Because throwing it out the window is not an option.
> -Original Message-
> From: A Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 23, 2002 4:47 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject
Hi William, thanks for your time and help so far - it is much appreciated.
My perl interpreter is definately pointing to the correct file - I have run
other perl scripts successfully that point to #!/usr/bin/perl.
It is only when I try to use 'use HTML::Template;' that I get a server
error. Ca
Hi all,
Firstly, thanks for all your help, its really appreciated !!
I emailed [EMAIL PROTECTED] and asked about using HTML templates instead of
embedding my HTML in my perl scripts. It was suggested that I use the
following code.
- filename = sample.pl
22 matches
Mail list logo