sr/local/bin/perl
-rwxr-xr-x 2 root wheel - 4616 Oct 7 16:57:11 2010 /usr/local/bin/perl*
--
Eitan Adler
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
icult.
Another possibility is to learn C++. You already know a scripting
language - so it might be worthwhile to learn a lower level language.
It all comes down to: what do you want to do with the new language.
Perhaps if you give us some more details we might be able to better
help you.
--
Eitan Adl
or (red) in the output to tty.
Take a look at Term::ANSIColor module
Example usage:
print PUSHCOLOR YELLOW . $x . POPCOLOR;
--
Eitan Adler
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
> The C programme looks like this (very simple)
> #include
> int main()
> {
> int i;
> char s[20] = "hello from c";
> for (i = 0; i < 15; i++) {
> sleep(1);
> printf("%s %d\n", s, i);
> }
> return 0;
> }
> and yet I only get the outp
> perl style is to just use boolean tests and not check for equality to
> some constants. and this means not using FALSE and TRUE constants. so
> you should drop this habit as you won't see it much in perl.
>
Alright - changed. This is exactly why I sent this email to the list - to
learn perl styl
I made the changes below and I'd like to know if there is anything else I
could do to improve the quality of my code.
use constant false => 0;
>>use constant true => 1;
>>
>
> Constants are usually written in all uppercase to distinguish them from
> keywords, functions, operators
I wrote a program to fetch email from a IMAP account, look to see if I sent
it, if yes execute any commands in the email and email the results back to
via a SMTP server.
1) This being my first perl program I'd like to know if I'm using the proper
perl idioms and language features. Is there anythin