in reply to Files with arabic names
Same way as any other file, with unlink. Your computer doesn't care what language the filename is in.
$ perl -Mstrict -MPath::Tiny -wE ' my $filename = "شاب مراد كالعادة يصرع"; path( $filename )->spew("Hello, world"); say qx{cat "$filename"}; unlink $filename; say qx{ls "$filename"}; ' Hello, world ls: شاب مراد كالعادة يصرع: No such file or directory |
Perhaps you meant something else? Maybe you need to learn about character encoding? See for example perlunitut, or this node.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Files with arabic names
by Corion (Patriarch) on Jul 13, 2017 at 18:52 UTC | |
by 1nickt (Canon) on Jul 13, 2017 at 18:56 UTC | |
|