Help for this page

Select Code to Download


  1. or download this
    open    $readhandle,    "<",    "Input.log";
    open    $writehandle,    ">",    "Output.log";
    
  2. or download this
    open my $readhandle,  '<', 'Input.log'  or die "Cannot open 'Input.log
    +' $!";
    open my $writehandle, '>', 'Output.log' or die "Cannot open 'Output.lo
    +g' $!";
    
  3. or download this
    while(<$readhandle>)
    {
    $line    =    readline($readhandle);
    
  4. or download this
    while ( my $line = <$readhandle> )
    {
    
  5. or download this
    $line    =    ~/(.)\n/;