User Tools

Site Tools


kurs:chomp_vs_chop.pl
use strict;
use warnings;

my $input = <STDIN>;

printf "input: [%s]\n", $input;

my $return = chomp($input);
printf "return: [%s] input: [%s]\n", $return, $input;

$return = chop($input);
printf "return: [%s] input: [%s]\n", $return, $input;
kurs/chomp_vs_chop.pl.txt · Last modified: 2014/09/10 21:22 (external edit)