On 25/01/17 17:32, source liu wrote:
>>> $cat test.py
>>> #!/bin/env python
>>> print "I am python"
>>>
>>> $perl test.py
>>> I am python
>>>
>>
>> That is just because this particular print statement
>> is compatible with Perl. If you had tried anything
>> more complex then it would have bombed.
On Wed, 25 Jan 2017 at 17:07 Alan Gauld via Tutor wrote:
> On 25/01/17 02:55, source liu wrote:
>
> > 2.7. (2.7.16 if I remembered it correctly), one could run python script
> > with perl
> >
> > $cat test.py
> > #!/bin/env python
> > print "I am python"
> >
> >
> > $perl test.py
> > I am python
On 25/01/17 02:55, source liu wrote:
> 2.7. (2.7.16 if I remembered it correctly), one could run python script
> with perl
>
> $cat test.py
> #!/bin/env python
> print "I am python"
>
>
> $perl test.py
> I am python
>
That is just because this particular print statement
is compatible with Pe