Hello adit,
On Wed, 11 Apr 2012 20:03:28 -0700 (PDT)
adit edogawa wrote:
> hi,
> please help me ...
> I have a perl script as follows:
>
> #! / Usr / bin / perl-w
> # Use module
> use strict;
> use DBI;
>
Seems like your E-mail user-agent has seriously mangled your Perl code thinking
it is fr
',
'$ Address',
'$ Province',
'$ Kode_pos',
"$ MSISDN ',
'$ Email',
timothy adigun [2teezp...@gmail.com] wrote:
>#!/usr/bin/perl
>use warnings;
>use strict;
>
>my @wanted = qw( dad mum children);
>my @children = qw(tim dan mercy);
>my $ref = {
>dad => "mick",
>mum => "eliz",
>children => { first => 'tim', second => 'dan', third => 'merc
On 3/28/12 Wed Mar 28, 2012 10:02 AM, "timothy adigun"
<2teezp...@gmail.com> scribbled:
> Hi Chris,
>
> On Wed, Mar 28, 2012 at 12:02 PM, Chris Stinemetz
> wrote:
>
>>>
>> foreach my $cell ( @wanted ) {
>> print "$cell:";
>> foreach my $hr ( @hours ) {
>>
>foreach(keys %{$href-
Hi David,
On Wed, Mar 28, 2012 at 4:36 PM, Kronheim, David (Contr) <
david.kronh...@ftr.com> wrote:
> timothy adigun [2teezp...@gmail.com] wrote:
> >#!/usr/bin/perl
> >use warnings;
> >use strict;
> >
> >my @wanted = qw( dad mum children);
> >my @children = qw(tim dan mercy);
> >my $ref =
'01' => '1',
>'02' => '1',
> '03' => '1',
> },
>
> );
>
> my $href = \%data;
> my @wanted = qw(077 078 149);
> my @hours = qw(00 01 02 03 0
2012/3/28 Chris Stinemetz :
> I simply want to test to see if @hours exists as a second
> key in the hash of hashes %data.
> foreach my $cell ( @wanted ) {
> print "$cell:";
> foreach my $hr ( @hours ) {
> if ( defined keys %{ $href->{$hr}}){
if ( defined $href->{$cell}{$hr}){
> pri
1',
'01' => '1',
'02' => '1',
'03' => '1',
},
);
my $href = \%data;
my @wanted = qw(077 078 149);
my @hours = qw(00 01 02 03 04 05 06);
foreach
am getting the results I want with this iteration through the hash,
> but I am stump on clearing the following warnings:
>
> fyi line 12168 is the last line of the input file.
>
> Use of uninitialized value in concatenation (.) or string at
> ./TESTdeltaT1.pl line 54, <$SUM
At 11:05 PM -0500 3/27/12, Chris Stinemetz wrote:
Hello list,
I am getting the results I want with this iteration through the hash,
but I am stump on clearing the following warnings:
fyi line 12168 is the last line of the input file.
Use of uninitialized value in concatenation (.) or string
Hello list,
I am getting the results I want with this iteration through the hash,
but I am stump on clearing the following warnings:
fyi line 12168 is the last line of the input file.
Use of uninitialized value in concatenation (.) or string at
./TESTdeltaT1.pl line 54, <$SUM> line 1216
er loop above.
Ken
> print $MAP "$up_ac\t$kegg_map{$up_ac}\n";
#------ line 441.
> }
> close $MAP;
> }
>
> I get the following error message:
> Use of uninitialized value in concatenation (.) or string at pipeline.pl
27;>', $kegg_tax_map_path or croak "Failed to
open for writing $kegg_tax_map_path: $!";
print $MAP "$up_ac\t$kegg_map{$up_ac}\n";
#-- line 441.
}
close $MAP;
}
I get the following error message:
Use of uninitial
Thank you,
the following worked:
{
no warnings qw(uninitialized);
...
}
- Original Message -
From: Jim Gibson
To: perl list
Cc:
Sent: Monday, January 9, 2012 1:14 PM
Subject: Re: supressing error message Use of uninitialized value in
concatenation
On 1/9/12 Mon Jan 9, 2012
On 1/9/12 Mon Jan 9, 2012 10:53 AM, "Rajeev Prasad"
scribbled:
> Hello,
>
> I have a lot of fields being concatenated to form a string and sometimes the
> values are empty, so i am getting this error:
>
> Use of uninitialized value in concatenation (.) or stri
Hello,
I have a lot of fields being concatenated to form a string and sometimes the
values are empty, so i am getting this error:
Use of uninitialized value in concatenation (.) or string at ./script.pl line
144, <$IN_FH> line 1.
how can i suppress this?
my logic flow:
$string1 = &q
On 6/8/11 Wed Jun 8, 2011 5:33 PM, "Sayth Renshaw"
scribbled:
>> That looks fine, but Perl is trying to interpolate $mynames (which
>> hasn't been initalised) into the string instead of indexing an element
>> of @mynames.
>>
>> You may be running an old perl. Please check your version with
>>
> That looks fine, but Perl is trying to interpolate $mynames (which
> hasn't been initalised) into the string instead of indexing an element
> of @mynames.
>
> You may be running an old perl. Please check your version with
>
> perl -v
I have 5.12.3 on this PC, The strawberry perl release.
>
> a
On 08/06/2011 13:02, Sayth Renshaw wrote:
Working through the exercises in Learning Perl. Chapter 3 exercise 2.
Basically have to look up a set of names and return an output list of
based on the numbers selected by the user. 1 would print fred etc. For
the longest time I had the below code but c
On 08/06/2011 13:02, Sayth Renshaw wrote:
Working through the exercises in Learning Perl. Chapter 3 exercise 2.
Basically have to look up a set of names and return an output list of
based on the numbers selected by the user. 1 would print fred etc. For
the longest time I had the below code but c
> Hello Sayth
>
> The program you have published seems to work fine. Are you certain that
> the print line inside the foreach loop is as you say?
>
> Rob
>
This is copied direct from my editor.
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
my @mynames = qw/fred betty barney dino wi
Working through the exercises in Learning Perl. Chapter 3 exercise 2.
Basically have to look up a set of names and return an output list of
based on the numbers selected by the user. 1 would print fred etc. For
the longest time I had the below code but couldn't figure out the body
of the foreach l
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
ull 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 the script is:
>
> Us
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/
run the script is:
Use of uninitialized value in concatenation (.) or string at script.pl line 32
where line 32 is where I am calling this:
"print $date";
Here is the script:
use warnings;
use strict;
#Specify the path to the log file you want to read, for ex. application log#
open (
On Oct 14, 6:41 am, [EMAIL PROTECTED] (Protoplasm) wrote:
> I'm attempting to write some code using the Config::INI::Simple
> module. When I run the app I get the following:
>
> Use of uninitialized value in concatenation (.) or string at ./open-
> file2.pl line 35.
> Use of
protoplasm wrote:
> I'm attempting to write some code using the Config::INI::Simple
> module. When I run the app I get the following:
>
> Use of uninitialized value in concatenation (.) or string at ./open-
> file2.pl line 35.
> Use of uninitialized value in concatenation
I'm attempting to write some code using the Config::INI::Simple
module. When I run the app I get the following:
Use of uninitialized value in concatenation (.) or string at ./open-
file2.pl line 35.
Use of uninitialized value in concatenation (.) or string at ./open-
file2.pl line 36.
U
luke devon <[EMAIL PROTECTED]> asked:
> Following error i am getting while its functioning. Could you
> please help me to find out what the error is ?
>
> Use of uninitialized value in concatenation (.) or string at
> /xxx.pl line 18, line 1.
> Use of uninitialize
Dear Friends,
Following error i am getting while its functioning. Could you please help me to
find out what the error is ?
Use of uninitialized value in concatenation (.) or string at /xxx.pl line 18,
line 1.
Use of uninitialized value in concatenation (.) or string at /xxx.pl line 21
On Sep 12, ganesh said:
This is the warning messge I am getting when I executed my script.
Please find my analysis of the above warning
Input:
Line 1: 20(1): 125-126
Line 2: 20:125-126
Output:
Line 1: 20(1): 125-126
Line 2: 20:125-126
My Code:
$line=~s!(\d+)(\(\d+\))?:(\d+)-!$1$2:$3-!
Dear All,
This is the warning messge I am getting when I executed my script.
Please find my analysis of the above warning
Input:
Line 1: 20(1): 125-126
Line 2: 20:125-126
Output:
Line 1: 20(1): 125-126
Line 2: 20:125-126
My Code:
$line=~s!(\d+)(\(\d+\))?:(\d+)-!$1$2:$3-!g;
Both the l
At 20:13 06/09/2003, Devon Young wrote:
What does this mean?? I'm thoroughly puzzled and I've been scouring the
net for an answer. I've been assuming it means I'm not putting strings
together correctly, but I can't figure out how to fix it. Here's the
errors I'm getting, followed by the peice of
t; <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Saturday, September 06, 2003 2:13 PM
Subject: Use of uninitialized value in concatenation (.) or string at...
> What does this mean?? I'm thoroughly puzzled and I've b
Please do not cross-post. I know already that I am going to be burned with at least
two failure notices by responding to your post before checking for rudeness. Since I
am not subscribed to either of the other lists you *spammed*, my replies will be
returned with either failure or
"Awaiting ap
t;
>
> Use of uninitialized value in substitution (s///) at
> C:\perl_stuff\artists.pl line 120.
> Use of uninitialized value in concatenation (.) or string at
> C:\perl_stuff\artists.pl line 122.
> Use of uninitialized value in concatenation (.) or string at
> C:\perl_stuff\
e errors I'm
> getting, followed by the peice of code that the error is apparently in. I
> can't see what's wrong though. The code looks fine to me...
>
> Use of uninitialized value in substitution (s///) at
> C:\perl_stuff\artists.pl line 120.
> Use of uninitialized
ode that the error is apparently in. I
can't see what's wrong though. The code looks fine to me...
Use of uninitialized value in substitution (s///) at
C:\perl_stuff\artists.pl line 120.
Use of uninitialized value in concatenation (.) or string at
C:\perl_stuff\artists.pl line 122.
Use o
On Fri, 2002-04-26 at 14:51, Jason Frisvold wrote:
> Hrm.. I'll run some tests with it and see what I find out... Sounds
> promising if it really is a preprocessor... So does it just do
> something along the lines of a cat | grep -v and then
> execute the output? (I realize that is simplifyi
IL PROTECTED]
Subject: RE: Debugging and 'uninitialized value in concatenation'
question
On Fri, 2002-04-26 at 11:44, Jason Frisvold wrote:
> While this appears to be a decent solution, I think I would still
> encounter the same problem that I wanted to avoid... Every time it
> encount
]>
Sent: Friday, April 26, 2002 11:44 AM
Subject: RE: Debugging and 'uninitialized value in concatenation' question
> While this appears to be a decent solution, I think I would still
> encounter the same problem that I wanted to avoid... Every time it
> encounters a CPP sta
On Fri, 2002-04-26 at 11:44, Jason Frisvold wrote:
> While this appears to be a decent solution, I think I would still
> encounter the same problem that I wanted to avoid... Every time it
> encounters a CPP statement (#IF DEBUG, #DEFINE, etc) then it still needs
> to make the proper calls and wha
nation encircles the world." -- Albert Einstein [1879-1955]
-Original Message-
From: Chas Owens [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 10:46 AM
To: Jason Frisvold
Cc: [EMAIL PROTECTED]
Subject: Re: Debugging and 'uninitialized value in concatenation'
question
On Thu, 2002-04-25 at 14:49, Jason Frisvold wrote:
> Judging from the subject lines coming across the list today, I think I'm
> gonna toss this question out there and then duck and cover... :-)
>
> I have 2 actual questions. I'll try to be as specific as possible..
> :-)
>
> Question #1.
>
>
On Thu, Apr 25, 2002 at 02:49:16PM -0400, Jason Frisvold wrote:
> Judging from the subject lines coming across the list today, I think I'm
> gonna toss this question out there and then duck and cover... :-)
Hmm, I can't see any obvious reason to flame that post. It's a
technique and style quest
From: "Jason Frisvold" <[EMAIL PROTECTED]>
> Ok, shoot me now... I tried to provide an example and I blew it..
> *grin* I realize that the locals are block scope.. I know what I
> meant, just didn't say it.. :)
I see. You never know where does the other guy come from. In VB
(yes I am forced
mportant than knowledge. Knowledge is limited.
Imagination encircles the world." -- Albert Einstein [1879-1955]
-Original Message-
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 4:17 PM
To: [EMAIL PROTECTED]
Subject: Re: Debugging and 'uninitialized
From: "Jason Frisvold" <[EMAIL PROTECTED]>
> Judging from the subject lines coming across the list today, I think
> I'm gonna toss this question out there and then duck and cover... :-)
We do not shoot at people here. Even if they do provide the missile
address. ;-)
> Question #1.
>
> When I
on Thu, 25 Apr 2002 18:49:16 GMT, Jason Frisvold wrote:
> Question #1.
> [...]
> One major side effect
> of this is that my code will begin to run slower due to all of the
> debugging...
See Sean M. Burke's "Constants in Perl" article in The Perl Journal, which
is available online. Especially t
Judging from the subject lines coming across the list today, I think I'm
gonna toss this question out there and then duck and cover... :-)
I have 2 actual questions. I'll try to be as specific as possible..
:-)
Question #1.
When I'm writing code, I want to be able to view as much output as
po
On Thursday, April 11, 2002, at 08:17 , Scott Taylor wrote:
[..]
> on this line:
> print "$trd Driver ID:$columns[19] -- $drvname";
>
> Can anyone point out my mistake?
> It still runs but fills up my error_log
> and I do have the variables initialized before the loop:
> my $trd = "";
> my $drvna
At 09:01 AM 11/04/2002, [EMAIL PROTECTED] wrote:
>Scott,
>
>You've declared it...
>my $drvname;
>...but not initialised it(given it a value). So at the moment it has the
>special value 'undef' (which is treated as 0 in a numeric context, or ''
>in a scalar one). Try and do much with an undef and
Whoa! thanks for the clarification. I need to take out some of my no
warnings now. ;)
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: None
> To: [EMAIL PROTECTED]
> Subject: Re: Use of uninitialized value in concatenation (.)
>
>
heers,
Tristan
You Wrote:
--
When I put the -w switch on I get this error:
Use of uninitialized value in concatenation (.) at
/var/www/cgi-bin/ticket.cgi line 71:
on this line:
print "$trd Driver ID:$columns[19] -- $drvname";
Can anyone point out my mistake?
It stil
Message-
> From: Scott Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 11, 2002 11:17 AM
> To: [EMAIL PROTECTED]
> Subject: Use of uninitialized value in concatenation (.)
>
>
> When I put the -w switch on I get this error:
> Use of uninitialized value in co
When I put the -w switch on I get this error:
Use of uninitialized value in concatenation (.) at
/var/www/cgi-bin/ticket.cgi line 71:
on this line:
print "$trd Driver ID:$columns[19] -- $drvname";
Can anyone point out my mistake?
It still runs but fills up my error_log
and I d
.
May we see a little more of your code?
Don't forget that, if $name doesn't contain any '.'s then $parts[1] _will_ be
uninitialized.
Cheers,
Rob
> -Original Message-
> From: John Way [mailto:[EMAIL PROTECTED]]
> Sent: 04 September 2001 17:08
> T
I am running a script with -w and I keep getting multiple warnings like...
Use of uninitialized value in substr at mlknpvs.pm line 240
Use of uninitialized value in concatenation (.) or string at
mlknpvs.pm line 241
In this particular script I call a sub from mlknpvs.pm. I declared an
60 matches
Mail list logo