[Perl-unix-users] deleting "invisible" characters

2003-03-11 Thread Tassos123
Hi all, I have a file that contains some "invisible" characters. These characters look like white spaces when I open the file in a text editor. Is there a way I can make them visible so that I can manipulate them with a Perl script? Is there a Perl function that allows me to delete any "invisible"

[Perl-unix-users] How to determine if a directory is empty

2002-09-30 Thread Tassos123
Hi, I want to determine if a directory is empty and delete it. I have tried   if ( -d $dd && -z $dd) but that doesn't seem to work. Does -z work only with plain files? Should I read the directory and if it contains only . and .., determine that is empty? It must be an easier way than that. Any

[Perl-unix-users] converting relative to absolute path

2002-09-26 Thread Tassos123
Hi, Is there a function in Perl that will convert a relative path to an absolute path? Does anybody have such a script? Or, if you can point me to where I should start looking for writing my own script, I will apprciate it. Thanks, --tassos

[Perl-unix-users] What do these errors mean and how to fix?

2002-03-16 Thread Tassos123
I am getting the following errors when I execute the code below. Any ideas why and how to fix them? ( I saw something similar posted in the lists before and it had something to do with using "my" and "local" variables and/or passing parameters by reference. Does this ring a bell to anybody?) Here

[Perl-unix-users] Handling Japanese characters with Perl

2002-02-07 Thread Tassos123
My apologies if this is a duplicate message (I think the first one never went out) and if this is not the right lists to post this but I will appreciate if anybody who has some experience with handling Japanese strings with Perl will provide me with some direction. I have a text file that contain