Stuart Bird wrote:
> I keep getting this error at the top of STDIN before the array is
> displayed:
>
> Name "main::reply" used only once: possible typo at C:\Documents and
> Settings\Stu\skype_log.pl line 8.
>   

You could write what I know about Perl on the back of a postage stamp,
but it seems to me that Perl is trying to be clever (as many compilers
do too) and is telling you that you have assigned a value to reply in
one place, and never used it, which (to Perl at least) seems a bit
pointless and more likely to be a typo on your part.

Of-course what you're trying to do (I assume) is just tell Perl to wait
for user input before continuing and you don't care about the result. if
so, there's presumably a way to do that without transferring it to a
variable you never use, or to declare the variable so that it doesn't
think you have a typo, or to turn off the error. That would require more
Perl skills than I have!

Try putting
    reply = '';
immediately before your existing reply= line, unless someone more
knowledgable about Perl can tell you a better option.

[Later: whilst typing this, Martin's reply came through. Removing the -w
will therefore "fix" this but I suspect you might otherwise benefit from
the warnings it's giving you, so I think turning that off at this stage
should be a last resort.]

-- 
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0845 45 89 555
Registered in England (0456 0902) at 13 Clarke Rd, Milton Keynes, MK1 1LG 


_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro

Reply via email to