Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Re: Re: Any possible heeeelp please??

by OM_Zen (Scribe)
on Jan 30, 2003 at 18:17 UTC ( #231398=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Any possible heeeelp please??
in thread can perl help me with secure PIN management via database?

Hi ,

use strict; use CGI; #use some mail module like MIME::Lite open(Filenm,"filenames.csv") || die "the file is not ready +to be opened"; while (<Filenm>){ local $/; # Here the file's size is important, for a lesser size t +his is ok my @pindigits = split(',',$_); $pinforphonecard = shift(@pindigits); # have the cgi stuff and MIME::Lite or any that you u +se for mailing part with the $pinforphonecard as the one to be let to + send # then go ahead and remove the $pinforphonecard and a co +mma from the file $_ =~ s/$pinforphonecard,//g; last; }

You should actually go for Tie::Db... as Merlyn observes, as you insist on csv , you could do this way

Replies are listed 'Best First'.
Any possible heeeelp please??
by jcsimba (Initiate) on Jan 30, 2003 at 19:08 UTC
    Hi there, Well it doesn't have to be 'csv'...but so long as the number(s) can be retrieved and then automatically be deleted (or blanked out from further usage!) from some type of file on the server. Thank you for all the help/advice so far!
Re: Re: Re: Re: Any possible heeeelp please??
by jcsimba (Initiate) on Jan 30, 2003 at 20:16 UTC
    Well it doesn't have to be a 'csv' file, it can be another type of long as when a 'pin number' is returned to the customer via broswer or email..that that number is then deactivated from the server 'storage file'.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://231398]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2016-10-01 08:58 GMT
Find Nodes?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:

    Results (575 votes). Check out past polls.