[ create a new paste ] login | about

Link: http://codepad.org/Qya1abjd    [ raw code | output | fork ]

Perl, pasted on May 22:
1
2
3
4
5
6
7
#! /usr/bin/perl

@rocks = qw /limesone quartz graphite/;

print "how many kinds of rocks do you have ?\n";

print "I have ",scalar @rocks," kinds of rocks.\n"; 


Output:
1
2
how many kinds of rocks do you have ?
I have 3 kinds of rocks.


Create a new paste based on this one


Comments: