Bryan Harris wrote:
>
>>for my $number ( 0 .. 100 ) {
>>print $number * 10, "\n";
>>}
>
>
> Or if you enjoy perl golf:
>
> print map {($_*10)."\n"} 0..100;
You call that golf?
print map$_*10 .$/,0..100;
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PR
SkyBlueshoes wrote:
> I'm looking for the Linux alternative to Win32::Console::Ansi?
I don't have Windows so I don't know what Win32::Console::Ansi does but
perhaps one of these modules is what you want:
perldoc Term::ANSIColor
perldoc Term::Cap
perldoc Curses
John
--
use Perl;
program
fulfill
John W. Krahn schreef:
> Bryan Harris wrote:
>> [attribution repaired] John W. Krahn:
>>> for my $number ( 0 .. 100 ) {
>>> print $number * 10, "\n";
>>> }
>>
>> Or if you enjoy perl golf:
>>
>> print map {($_*10)."\n"} 0..100;
>
> You call that golf?
>
> print map$_*10 .
On Sun, 2006-07-05 at 14:19 +0200, Dr.Ruud wrote:
> print"$_$|$/"for 0..100;
perl -e 'print"$_$|$/"for 0..100;'
perl -le 'print"$_$|"for 0..100;'
--
__END__
Just my 0.0002 million dollars worth,
--- Shawn
"For the things we have to learn before we can do them, we learn by doing the
"Dr.Ruud" schreef:
> $\=$,="0$/";print 0..100;
00ps. Here some that don't start with "00":
$,="0$/";print"",1..100,"";
print map{$_*10,$/}0..100;
map{print$_*10,$/}0..100;
print$_*10,$/for 0..100;
print$_*10,$/for+0..100;
print$_*10,$/for-0..100;
print$_*10,$/fo
"Mr. Shawn H. Corey" schreef:
> Dr.Ruud:
>> print"$_$|$/"for 0..100;
>
> perl -e 'print"$_$|$/"for 0..100;'
> perl -le 'print"$_$|"for 0..100;'
Yes, but John set the rule to use "$/" and ";", and I decided to follow
that.
perl -le 'print$_.0for 0..100'
(still has the 00-bug)
--
Af
i use Net::Telnet to connect to a server and run tests for several
hours. the script will normally die in various places in the script,
apparently due to losing connection to the server.
i found in the documentation about changing Net::Telnet's Errmode to
'return' so it will return to the script
Hi,
I am using the Net::Netmask module to handle some IP prefix problems. I have
a question about its usage. I want to store a block in two tables, and I may
delete the block from one of the tables at some later time, it appears that
the block is deleted from both tables. See the following code.
Jason Duan wrote:
> Hi,
Hello,
> I am using the Net::Netmask module to handle some IP prefix problems.
> I have a question about its usage. I want to store a block in two
> tables, and I may delete the block from one of the tables at some later
> time, it appears that the block is deleted from bo