RE: silly perl question

1999-11-12 Thread Eric Cholet
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

Re: silly perl question

1999-11-12 Thread Eric L. Brine
> 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

Re: silly perl question

1999-11-12 Thread darren chamberlain
'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

Re: silly perl question

1999-11-12 Thread Mark D. Landry
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

silly perl question

1999-11-12 Thread Oleg Bartunov
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 _