Perls inavations

A

atbusbook

#1 pronouns $_,@_,%_
#2 regular expresions

perl may look ugly but it true uglyness is building a languige on bad
ideas like pythons lambdas, that canot contain 1 measly expression.
pronouns or implisit variables lets take a standard perl idiom for
regurgitating lines

while(<>){
print;
}
# look ma no variables

that is a good idea becaus its terse

in java to do the same thing you would have to do this

class foo{
static BufferedReader stdin = new BufferedReader(new
InputStreamReader(System.in));
public static void main(){
while(String foo = stdin.readLine()!=""){
System.out.println(foo);
}
}
}
 
M

Matt Garrish

#1 pronouns $_,@_,%_
#2 regular expresions

perl may look ugly but it true uglyness is building a languige on bad
ideas like pythons lambdas, that canot contain 1 measly expression.
pronouns or implisit variables lets take a standard perl idiom for
regurgitating lines

Please get a good spellchecker and dictionary. Even if English isn't your
first language, it doesn't excuse all the mistakes you made.

Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,224
Latest member
BettieToom

Latest Threads

Top