No you don't have to escape the backslashes - only need this if using
double quotes (single quotes infers literal string, double infers
interpolated).
The error is down to -w tag on the end of the first line which is
causing perl to throw warnings over what may cause concern but is
probably perfectly reasonable
Martin
On Mon, 2007-07-09 at 15:23 +0100, Malcolm Hunter wrote:
> Hi Stu,
>
> On Mon, July 9, 2007 2:54 pm, Stuart Bird wrote:
> > Can anyone see anything wrong with this perl script entry?
> >
> >
> > #!/usr/bin/perl -w
> >
> > open(DATA, 'C:\Documents and Settings\Stu\chat512.dbb');
> > while (<DATA>) {
> > print $_;
> > }
> >
> > reply = <STDIN>;
> >
> >
> > 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.
>
> Don't you have to escape the backslashes? i.e.
>
> open(DATA, 'C:\\Documents and Settings\\Stu\\chat512.dbb');
>
> Malc
> --
> Web Development, Technical Copy-Editing & Proofreading
>
> KDE Proofreading Team
> KDE British English Translation Team
>
> http://l10n.kde.org/team-infos.php?teamcode=en_GB
>
>
> _______________________________________________
> Peterboro mailing list
> [email protected]
> https://mailman.lug.org.uk/mailman/listinfo/peterboro
>
>
>
_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro