Array Handling

2002-09-24 Thread Rohit Mishra-R53658
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

Re: opening a list of files

2002-09-25 Thread Rohit Mishra-R53658
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

Re: Help with regular expressions within a split statement

2002-09-25 Thread Rohit Mishra-R53658
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