BernieC has asked for the wisdom of the Perl Monks concerning the following question:
my test code is very simple
and when I run it I get#!/usr/bin/perl use v5.10 ; use strict; use warnings ; use Win32::LongPath ; my $d = Win32::LongPath->new() ; $d->opendirL(".") or die "Can't open directory: $!\n" ; for my $file ($d->readdirL()) { say $file ; } $d->renameL("testfile.txt", "testedfile.txt") or die "didn't rename! $ +!"; exit ;
and indeed the file wasn't renamed. I haven't a clue what I'm doing wrongD:\Desktop\test>rename.pl . .. rename.pl testfile.txt didn't rename! at D:\Desktop\test\Onefile\test\rename.pl line 12.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Contacting the author of a module?
by hv (Prior) on Jan 06, 2023 at 03:24 UTC | |
by BernieC (Pilgrim) on Jan 06, 2023 at 13:30 UTC | |
by BernieC (Pilgrim) on Jan 07, 2023 at 00:30 UTC | |
|
Re: Contacting the author of a module?
by ikegami (Patriarch) on Jan 06, 2023 at 18:55 UTC | |
|
Re: Contacting the author of a module?
by syphilis (Archbishop) on Jan 06, 2023 at 11:42 UTC | |
by ikegami (Patriarch) on Jan 06, 2023 at 19:00 UTC | |
by BernieC (Pilgrim) on Jan 06, 2023 at 13:27 UTC | |
by Corion (Patriarch) on Jan 06, 2023 at 13:34 UTC | |
by ikegami (Patriarch) on Jan 06, 2023 at 19:04 UTC | |
|
Re: Contacting the author of a module?
by GrandFather (Saint) on Jan 06, 2023 at 01:30 UTC |