Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2016-12-08 18:36 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (144 votes). Check out past polls.