How about the substr function?
I would use something differrent to read the content of a directory: the opendir, readdir and closedir functions. Also the strict and warnings pragma's are missing.
In reply to Re: How do i take the first 4 characters of any file name in a specified directory?
by dHarry
in thread How do i take the first 4 characters of any file name in a specified directory?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |