#!/usr/bin/perl $temp = <STDIN>; if ($temp eq "yo") { print "whats up"; } elsif ($temp eq "not much") { print "cool"; } else ($temp eq "<STDIN>") { print "HUH?"; }
Title edit by tye
In reply to Problem with simple program reading from STDIN by yellowbeard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |