|
Posted by Subra on February 24, 2008, 11:39 pm
Please log in for more thread options
> John W. Krahn wrote:
> > Petr Vileta wrote:
>
> >> Subra wrote:
>
> >>> Is there any special character like in C (\) which I should put at
> >>> the end of the broken line ????
>
> >> You can wrap line at any space in your long line. Example:
>
> >> if ($settings->-> ||
> >> $settings->->) {
>
> > It doesn't even have to be at a space:
>
> > $ perl -MData::Dumper -le'$w->->-> = "hello"; print Dumper
> > $w' $VAR1 = {
> > 'x' => {
> > 'y' => {
> > 'z' => 'hello'
> > }
> > }
> > };
>
> > $ perl -MData::Dumper -le'
> > $w
> > ->
> >
> > ->
> >
> > ->
> >
> > =
> > "hello";
> > print Dumper $w'
> > $VAR1 = {
> > 'x' => {
> > 'y' => {
> > 'z' => 'hello'
> > }
> > }
> > };
>
> Yes, of course, but wrapping line at space (or tab) is better readable for
> human and for perl novice too ;-)
> --
> Petr Vileta, Czech republic
> (My server rejects all messages from Yahoo and Hotmail. Send me your
> mail from another non-spammer site please.)
>
> Please reply to <petr AT practisoft DOT cz>
Thanks one and all for making it clear....
|