Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: creating a username from a csv file

by Tanktalus (Canon)
on Oct 04, 2012 at 22:34 UTC ( #997337=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @fieldnames = qw(Lname Fname ssn address city state zip phone1 phon
    +e2);
    my %row;
    @row{@fieldnames} = split(/,/, $line); # yeah, I just told you to use 
    +Text::CSV, but I'm keeping my suggestions independent.
    
  2. or download this
    my $user = substr($Fname, 0, 1) . substr($Lname, 0, 3) . substr($ssn, 
    +-4);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2015-07-05 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls