It's not only 'string', look:
42;
is just as silent.
Please go to comp.lang.perl.misc or similar, where very basic Perl
questions such as yours are answered.
> Hi,
>
> sorry for offtopic and silly question
>
> friend of mine just learning perl has asking me what does
> 'string'; means. Perl
> sorry for offtopic
next time, use comp.lang.perl.misc
> silly question
no such thing
> friend of mine just learning perl has asking me what does
> 'string'; means. Perl seems just silently ignores this
> 'statement' No warning, no action. Is it a known feature ?
In perl and C, an expressio
'string'; is a complete statement (a scalar constant?). It executes and no
output is produced. Even under strict it produces no warnings. Without the
quotes, it is a bareword, and strict catches it (compile time error).
darren
Oleg Bartunov ([EMAIL PROTECTED]) wrote:
> Hi,
>
> sorry for offtop
It's a simple statement evaluated for it's side-effects. There are no
side-effects to 'string'; so nothing appears to happen. However, this
value will be returned as the value of a subroutine or block if it's the
last statement in the block.
Oleg Bartunov wrote:
> Hi,
>
> sorry for offtopic and
Hi,
sorry for offtopic and silly question
friend of mine just learning perl has asking me what does
'string'; means. Perl seems just silently ignores this
'statement' No warning, no action. Is it a known feature ?
Regards,
Oleg
_