代码搜索:Programs
找到约 10,000 项符合「Programs」的源代码
代码结果 10,000
www.eeworm.com/read/279234/10452721
pl tree.pl
#!/usr/bin/perl
# Fig. 22.25: tree.pl
# Using Data::Dumper to print the results of tree-based parsing.
use warnings;
use strict;
use Data::Dumper;
use XML::Parser;
my $xml =
www.eeworm.com/read/279234/10452867
py hourly.py
# Fig. 27.25 Hourly.py
# An hourly employee class
import Employee
class Hourly( Employee.Employee ):
def __init__( self, first, last, initHours, initWage ):
Employee.Employee
www.eeworm.com/read/279234/10453247
pl fig11_09.pl
#!usr/bin/perl
# Fig. 11.9: fig11_09.pl
# Deleting a file with unlink
use strict;
use warnings;
print( "Input a file you want deleted: " );
chomp( my $file = );
if ( -f $file && u
www.eeworm.com/read/279234/10453327
pl fig09_13.pl
#!usr/bin/perl
# Fig 9.9: formatInt.pl
# Using the integer conversion specifiers.
use warnings;
use strict;
printf "%d\n", 455.954;
printf "%d\n", +455.34;
printf "%d\n", -455;
printf "%o\
www.eeworm.com/read/279234/10453331
pl fig09_23.pl
#!usr/bin/perl
# Fig. 9.20: eval.pl
# Capturing fatal errors
use warnings;
use strict;
my $line = "25 / 0";
eval ( $line );
print "There is an error:\n" if $@;
print $@;
print "Witho
www.eeworm.com/read/279234/10453345
pl fig09_19.pl
#!usr/bin/perl
# Fig. 9.16: flags1.pl
# Printing numbers with and without the + flag
use warnings;
use strict;
printf "%d\n%d\n", 786, -786;
printf "%+d\n%+d\n", 786, -786;
############
www.eeworm.com/read/279234/10453355
pl fig09_21.pl
#!usr/bin/perl
# Fig. 9.18: flags2.pl
# Using the # flag with conversion specifiers
# o, x, X, and any floating-point specifier
use warnings;
use strict;
my $integer = 1427;
my $float = 142
www.eeworm.com/read/279234/10453368
pl fig09_16.pl
#!usr/bin/perl
# Fig. 9.13: justify.pl
# Printing integers right-justified
use warnings;
use strict;
printf "%4d\n", 1;
printf "%4d\n", 12;
printf "%4d\n", 123;
printf "%4d\n", 1234;
prin