- or download this
-n causes Perl to assume the following loop around your
program, which makes it iterate over filename argu-
...
while (<>) {
... # your program goes here
}
- or download this
while(<>){
/ /, $;{$`}++}{print $_, $/ ^= "*" for %
}
- or download this
while(<>){
/ /, $;{$`}++
...
{
print $_, $/ ^= "*" for %
}
- or download this
while(<>){
/ /, $;{$`}++
...
{
print $_, $/ ^= "*" for %;
}
- or download this
use English;
...
print $_, $INPUT_RECORD_SEPARATOR ^= '*';
}
}
- or download this
$username $num_logins
$username $num_logins
- or download this
$ who|perl -MO=Deparse -ne'/ /,$;{$`}++}{print$_,$/^="*"for%'
LINE: while (defined($_ = <ARGV>)) {
...
print $_, $/ ^= '*';
}
}
- or download this
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; =
qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)