Re: rename in windows doesn't work

2003-03-24 Thread Jenda Krynicky
From: "Rob Dixon" <[EMAIL PROTECTED]> > Jenda Krynicky wrote: > > From: "Rob Dixon" <[EMAIL PROTECTED]> > > > > > > Don't put \n on the end of a die string, otherwise the Perl > > > interpreter won't tell you the line number of the failure. > > > > Well it's good to know you'll get the line number

Re: rename in windows doesn't work

2003-03-24 Thread Rob Dixon
Jenda Krynicky wrote: > From: "Rob Dixon" <[EMAIL PROTECTED]> > > > > Don't put \n on the end of a die string, otherwise the Perl > > interpreter won't tell you the line number of the failure. > > Well it's good to know you'll get the line number and source file > name if you omit the newline, but

Re: rename in windows doesn't work

2003-03-24 Thread Jenda Krynicky
From: "Rob Dixon" <[EMAIL PROTECTED]> > "Leon Rosenstein" <[EMAIL PROTECTED]> wrote: > > > > I am having some problems with a script. > > > > Currently the script reads: > > > > opendir (DIR, "c:/temp") or die "Cant Open Temp Buddy Boy! \n"; > > Don't put \n on the end of a die string, otherwise t

Re: rename in windows doesn't work

2003-03-24 Thread Jenda Krynicky
From: "Rosenstein, Leon" <[EMAIL PROTECTED]> > Currently the script reads: > opendir (DIR, "c:/temp") or die "Cant Open Temp Buddy Boy! \n"; > @filenames = readdir (DIR) or die "Can't Hold Filenames \n"; > foreach $name (@filenames) > {if ($name eq "blah.dat") {rename ($name, "blah.old") or die "

Re: rename in windows doesn't work

2003-03-24 Thread Rob Dixon
Hi Leon "Leon Rosenstein" <[EMAIL PROTECTED]> wrote: > > I am having some problems with a script. > > Currently the script reads: > > opendir (DIR, "c:/temp") or die "Cant Open Temp Buddy Boy! \n"; Don't put \n on the end of a die string, otherwise the Perl interpreter won't tell you the line num

RE: rename in windows doesn't work

2003-03-24 Thread wiggins
On Mon, 24 Mar 2003 08:58:40 -0500, "Rosenstein, Leon" <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi everyone, > > I am having some problems with a script. > > Currently the script reads: > opendir (DI

Re: rename in windows doesn't work

2003-03-24 Thread Sudarshan Raghavan
On Mon, 24 Mar 2003, Rosenstein, Leon wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi everyone, > > I am having some problems with a script. > > Currently the script reads: > opendir (DIR, "c:/temp") or die "Cant Open Temp Buddy Boy! \n"; > @filenames = readdir (DIR) or di