in reply to Re: Re: Re: Re: rename files dynamically
in thread rename files dynamically
my @new_path = join "\\", @path[0,5,6];
@newpath should not be an array variable since the result of join is a scalar. That should be $newpath. If you want to pass that value to a subroutine, do this:
... $new_path = join "\\", @path[0,5,6]; process_directory($new_path); ... sub process_directory { my ($path) = @_; #$path gets the value from $new_path above .... }
--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';
|
|---|