Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by OM_Zen (Scribe)
on Jan 30, 2003 at 18:17 UTC ( [id://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 file...so 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-25 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found