Help for this page

Select Code to Download


  1. or download this
    print "Enter the Comma Separated Text...:";
    $str = <STDIN>;
    chomp($str);
    ...
    foreach $val(@arr){
     print "$val\n";
    }
    
  2. or download this
    #Get the phone number and check to make sure that it contains only dig
    +its and the length is 10
    
    ...
    
    $phone=~/(d)(ddd)(ddd)(ddd)/;
    $formattedphone="+".$1." ".$2." ".$3." ".$4;