Bob, Michael, my thanks to you both for answering my diamond operator
question.
Bob, I tried the lines you suggested and they worked just the way I wanted
them to. Thanks.
Michael, thanks for the user functions or subroutines: not sure what Python
calls them. A lot of food for thought there. M
bob wrote <<>>
Sorry bob, that's what comes of posting my question last thing at night when
finding the way upstairs is difficult enough.
In perl I can write this:
@array = <>;
print @array;
If I save that and call it from the command line, I can include the name of a
file after the script na
>It is included as part of the standard
>library (as are all the modules in the doc
>Danny referenced).
Thanks, Kent.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
>> I am coming to Python from Perl. Does Python have
>>anything like the diamond operator found in Perl?
>Python includes a module called 'fileinput' that does sorta this:
>http://www.python.org/doc/lib/module-fileinput.html
>If you have more questions, please feel free to ask.
>Good luck
I am coming to Python from Perl. Does Python have anything like the diamond
operator found in Perl?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Alan G. wrote:
<<>>
<<>>
Thanks, Alan. I'll give it a look.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I am a complete beginner with Python, so apologies if this is a silly question
with an obvious answer.
I am using Python on an Apple running 10.3, and write scripts as text
documents which I then call from the Terminal. I am told that the scripts can
be made into applets and that documents can