Help for this page

Select Code to Download


  1. or download this
    open FILE, $filename or die "Can't open $filename\n";
    my @lines = <FILE>;
    close FILE;
    my @new_list = keys map {$_ => 1} @lines;
    
  2. or download this
    perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); 
    +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth
    +er_name\n"'