Help for this page

Select Code to Download


  1. or download this
    open(CUST, "cust_info.txt");
    while (<CUST>) { print ((split ('\|'))[1], "\n"); }
    
  2. or download this
    open(CUST, "cust_info.txt");
    while (<CUST>) {
    ...
        $full_name =~ s/(\w)\w*\s+(.+$)/$1. $2/;
        print $full_name, "\n";
    }