perl code

Upload: chandug55

Post on 01-Mar-2016

216 views

Category:

Documents


0 download

DESCRIPTION

perl coding for beginners

TRANSCRIPT

  • $integer = 200;$negative = -300;$floating = 200.340;$bigfloat = -1.2E-23;

    $abc = 0377;$xyz=053;# FF hex, also 255 decimal$hex = 0xfc;

    print "integer = $integer\n";print "negative = $negative\n";print "floating = $floating\n";print "bigfloat = $bigfloat\n";print "integer = $abc\n";print "integer = $xyz\n";print "hexa = $hex\n";

    print "File name ". __FILE__ . "\n";print "a". __LINE__ ."\n";print "Package " . __PACKAGE__ ."\n";

    # they can not be interpolatedprint "__FILE__ __LINE__ __PACKAGE__\n";

    @var_abc = (a..z);print "@var_abc\n";