Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: <code> tags and extra blank lines

by dbush (Deacon)
on Jan 10, 2003 at 17:56 UTC ( [id://225882]=note: print w/replies, xml ) Need Help??


in reply to <code> tags and extra blank lines

On a related note; I've noticed that when using the "d/l code" link, a number of blank lines are added to the end. For example the following...

#perl use strict; use warnings; my @dataLines = <DATA>; print 'Number of data lines: ' . scalar @dataLines . "\n"; __DATA__ 1

...which was entered into the text box like this...

<CODE>
#perl
use strict;
use warnings;

my @dataLines = <DATA>;
print 'Number of data lines: ' . scalar @dataLines . "\n";

__DATA__
1
</CODE>

I would have expected the output to be "Number of data lines: 1" but actually prints "Number of data lines: 4".

Cheers,
Dom.

Update: Changed the actual number output to equal 4 not 3.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://225882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-24 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found