CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
File Question

 



KaoAtlantis
Novice

Jan 5, 2001, 6:21 PM

Post #1 of 2 (138 views)
File Question Can't Post

I have been trying to create user accounts in perl, But I want to have a seprate file for every user...

Unfortunatly, Users have odd charactors in their names (I cant change this, I would affect too many people), Like | / or \ sometimes even a Question mark... Basicly they have access to charactors Windows(I will eventualy put this software on my Linux Machine) donesn't allow in filenames...

I was wondering if there was a way to get Perl to place the filenames with HEX Charactors, Instead of normal charactors, But also convert the user input into hex, so it can search the files...

Thanks for you help, Kao



Chris_H
stranger

Jan 22, 2001, 9:53 PM

Post #2 of 2 (104 views)
Re: File Question [In reply to] Can't Post

Why not prevent users from having those characters in their names?

You could always URL encode the characters then convert them back if you like.

Or use a series of characters such as |!!|+ to separate the two values.


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives