Nov 25, 2008 5:19 pm
Wagner, David --- Senior Programmer Analyst --- WGOI get the following printed out on my terminal:
pl517c.pl: Gen Rpt/Email St : 08:38:48
Attempt to free unreferenced scalar: SV 0x2063c74, Perl interpreter: 0x22424c at
C:\CurrWrka\00COMM~3\pl517c.pl line 1259.
Attempt to free unreferenced scalar: SV 0x206984c, Perl interpreter: 0x22424c at
C:\CurrWrka\00COMM~3\pl517c.pl line 1309.
The code is:
if ( ! $MyDataSw ) {
$MyPrtBuf .= sprintf " *** No Ids were found!! ***\n";
}
The processing completes, but I don't understand what is happening with the error. Running with strict and warnings, nothing appears as a warning, etc. I am running on xp sp 2, AS 5.8.8 build 824.
The code is exactly the same in both places where the warning comes up.
Thoughts? I searched the net and found a number of references, but nothing as mundane as this. I have a large number of scripts and what I am doing here is not much different than in others, yet I am getting this warning.
If you have any questions and/or problems, please let me know.
Thanks.
Wags ;)
David R. Wagner
Senior Programmer Analyst
FedEx Freight
1.408.323.4225x2224 TEL
1.408.323.4449 FAX
http://fedex.com/us
Nov 25, 2008 7:46 pm
Rob DixonWagner, David --- Senior Programmer Analyst --- WGO wrote:
> I get the following printed out on my terminal:
>
> pl517c.pl: Gen Rpt/Email St : 08:38:48
> Attempt to free unreferenced scalar: SV 0x2063c74, Perl interpreter: 0x22424c at
> C:\CurrWrka\00COMM~3\pl517c.pl line 1259.
> Attempt to free unreferenced scalar: SV 0x206984c, Perl interpreter: 0x22424c at
> C:\CurrWrka\00COMM~3\pl517c.pl line 1309.
>
> The code is:
>
> if ( ! $MyDataSw ) {
> $MyPrtBuf .= sprintf " *** No Ids were found!! ***\n";
> }
>
> The processing completes, but I don't understand what is happening with the error. Running with strict and warnings, nothing appears as a warning, etc. I am running on xp sp 2, AS 5.8.8 build 824.
>
> The code is exactly the same in both places where the warning comes up.
>
> Thoughts? I searched the net and found a number of references, but nothing as mundane as this. I have a large number of scripts and what I am doing here is not much different than in others, yet I am getting this warning.
>
> If you have any questions and/or problems, please let me know.
> Thanks.
>
> pl517c.pl: Gen Rpt/Email St : 08:38:48
> Attempt to free unreferenced scalar: SV 0x2063c74, Perl interpreter: 0x22424c at
> C:\CurrWrka\00COMM~3\pl517c.pl line 1259.
> Attempt to free unreferenced scalar: SV 0x206984c, Perl interpreter: 0x22424c at
> C:\CurrWrka\00COMM~3\pl517c.pl line 1309.
>
> The code is:
>
> if ( ! $MyDataSw ) {
> $MyPrtBuf .= sprintf " *** No Ids were found!! ***\n";
> }
>
> The processing completes, but I don't understand what is happening with the error. Running with strict and warnings, nothing appears as a warning, etc. I am running on xp sp 2, AS 5.8.8 build 824.
>
> The code is exactly the same in both places where the warning comes up.
>
> Thoughts? I searched the net and found a number of references, but nothing as mundane as this. I have a large number of scripts and what I am doing here is not much different than in others, yet I am getting this warning.
>
> If you have any questions and/or problems, please let me know.
> Thanks.
Which line is 1259 and 1309? The if or the assignment?
The error is an internal perl problem, and implies a bug in the XS code of one
of the modules you're using. I can't tell why you got it here that but thre's a
chance that it may help to discard the call to sprintf(), which does nothing
useful here. So:
unless ($MyDataSw) {
$MyPrtBuf .= " *** No Ids were found!! ***\n";
}
HTH,
Rob
Nov 26, 2008 12:44 am
Wagner, David --- Senior Programmer Analyst --- WGO> -----Original Message-----
> From: Rob Dixon [mailto:rob.dixon@gmx.com]
> Sent: Tuesday, November 25, 2008 11:46 AM
> To: Perl Beginners
> Cc: Wagner, David --- Senior Programmer Analyst --- WGO
> Subject: Re: Warning that I am receiving. but not making any sense
>
> Wagner, David --- Senior Programmer Analyst --- WGO wrote:
It is the if statement in both cases. I changed the sprintf ,> From: Rob Dixon [mailto:rob.dixon@gmx.com]
> Sent: Tuesday, November 25, 2008 11:46 AM
> To: Perl Beginners
> Cc: Wagner, David --- Senior Programmer Analyst --- WGO
> Subject: Re: Warning that I am receiving. but not making any sense
>
> Wagner, David --- Senior Programmer Analyst --- WGO wrote:
> > I get the following printed out on my terminal:
> >
> > pl517c.pl: Gen Rpt/Email St : 08:38:48
> > Attempt to free unreferenced scalar: SV 0x2063c74, Perl
> interpreter: 0x22424c at> >
> > pl517c.pl: Gen Rpt/Email St : 08:38:48
> > Attempt to free unreferenced scalar: SV 0x2063c74, Perl
> > C:\CurrWrka\00COMM~3\pl517c.pl line 1259.
> > Attempt to free unreferenced scalar: SV 0x206984c, Perl
> interpreter: 0x22424c at> > Attempt to free unreferenced scalar: SV 0x206984c, Perl
> > C:\CurrWrka\00COMM~3\pl517c.pl line 1309.
> >
> > The code is:
> >
> > if ( ! $MyDataSw ) {
> >
> > The code is:
> >
> > if ( ! $MyDataSw ) {
but the error comes back to the if in both cases.
Thoughts?
Wags ;)
> > $MyPrtBuf .= sprintf " *** No Ids were found!! ***\n";
> > }
> >
> > The processing completes, but I don't understand what
> is happening with the error. Running with strict and > > }
> >
> > The processing completes, but I don't understand what
> warnings, nothing appears as a warning, etc. I am running on
> xp sp 2, AS 5.8.8 build 824.
> >
> > The code is exactly the same in both places where the
> warning comes up.> > The code is exactly the same in both places where the
> >
> > Thoughts? I searched the net and found a number of
> references, but nothing as mundane as this. I have a large > > Thoughts? I searched the net and found a number of
> number of scripts and what I am doing here is not much
> different than in others, yet I am getting this warning.
> >
> > If you have any questions and/or problems, please
> let me know.> > If you have any questions and/or problems, please
> > Thanks.
> > Which line is 1259 and 1309? The if or the assignment?
>
> The error is an internal perl problem, and implies a bug in
> the XS code of one
> of the modules you're using. I can't tell why you got it here
> that but thre's a
> chance that it may help to discard the call to sprintf(),
> which does nothing
> useful here. So:
>
> unless ($MyDataSw) {
> $MyPrtBuf .= " *** No Ids were found!! ***\n";
> }
>
> HTH,
>
> Rob
>
Nov 26, 2008 1:03 am
Rob DixonWagner, David --- Senior Programmer Analyst --- WGO wrote:
>
> if ( ! $MyDataSw ) {
>
> It is the if statement in both cases. I changed the sprintf, but the error
> comes back to the if in both cases.
>
> Thoughts?
> if ( ! $MyDataSw ) {
>
> It is the if statement in both cases. I changed the sprintf, but the error
> comes back to the if in both cases.
>
> Thoughts?
Then either the perl engine is messed up beyond hope, or the scalar variable
$MyDataSw is more than a simple scalar 'my' variable.
How is $MyDataSw defined? I'm guessing it's tied.
Rob
Previous Thread: Ways to get a mapping of values versus keys in a hash where there is one-to-one mapping between the keys and the values !
Next Thread: Creating an HTML with images
Related Forum Topics
- IO:Socket - receiving data
- Query on Threads, receiving Segment Fault.
- Receiving Output parameters of a sybase stored procedure
- Why do I get a warning?
- CGI warning/error
- Warning: Use of uninitialized value
- Is there any method to tell different between warning and errors?
- Received ezmlm warning
- Getting warning message while running the following code
- Re: gifts w--) WARNING. MY ACCOUNT WAS HIJACKED!