Hi all,
Is there any way to open a "handle" to an array as we open a handle to a
file?? The condition being we can use that "array handle" everywhere we can
use a file handle
Like if we do:
$fh = new FileHandle "file.txt", O_APPEND;
print $fh "Written!\n";
it will add a line to the file f
I dont know why but in my case also foreach ( readdir(...) ) didnt
work.
try
while( $eachfile = readdir( KART ){
.
}
This worked in my case.
-Rohit
Adriano Allora wrote:
> Hi to all,
> I need a script to open all the files in a directory and count all the
> words of them, but it do
This should work
split(/[;\/]+/,$authors[$x])
Shaun Bramley wrote:
> I have data that for some god foresaken reason is using two or three methods
> of delimitting names. Some are delimitted using '//' others with ';'.
>
> I have tried using @names = split( /(;)|(\/\/)/, $authors[$x]); howeve