mitchreward has asked for the wisdom of the Perl Monks concerning the following question:
hi guys,
Why is the following code print the \n first before the scalars ?
I wanted it like this, print $toto, => new line => print $tutu ...
#!/usr/bin/perl -w use strict; use warnings; my $toto = 'toto'; my $tutu = 'tutu'; my $deux = $toto, print "\n", $tutu; print $deux
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple scalars question
by AppleFritter (Vicar) on Jul 18, 2014 at 10:03 UTC | |
|
Re: simple scalars question
by Anonymous Monk on Jul 18, 2014 at 09:35 UTC | |
by mitchreward (Acolyte) on Jul 18, 2014 at 09:41 UTC |