On Jul 19, 2004, at 9:46 AM, James Edward Gray II wrote:

anyway, Is it possible to write scripts using only '$' instead of other prefix symbols?
In other words, a php-style script written in perl

Whether it is or not, it's not the answer to your problems.

Start trying to make sense of the world you find yourself in. There are rules. Try to understand why things are happening, not just that they are happening.

$ is for scalars. Even with $hash{some_key} and $array[0] we're talking about one entry of the group, a scalar.

...
% is similar, for the hash as a whole. For example, we don't want the keys() of one entry of a hash, that doesn't make sense. We want the keys() of an entire hash, so we call it with:


keys %some_hash

....

Hopefully some of this makes sense and helps get you over the hump. Hang in there.

James



Thanks a lot for your advice James, I found what you said, especially:

Start trying to make sense of the world you find yourself in. There are rules. Try to understand why things are happening, not just that they are happening.

to be encouraging, yet thought-provoking.

I'll have to keep the following quote in mind:
"Without rules, there is chaos" ~ anonymous


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to