Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Order of printf statements vs order of actual lines printed out

by Rahul6990 (Beadle)
on Apr 09, 2013 at 06:20 UTC ( #1027654=note: print w/ replies, xml ) Need Help??


in reply to Order of printf statements vs order of actual lines printed out

Use:

my @foo; push @foo, 5; push @foo, 7, 8; printf "@foo\n"; printf "\nabove first set of dashes #: [$#foo]\n"; printf "first set of dashes------------\n"; printf "\nsecond set of dashes------------\n"; my $y = printf "\ny dashes------------\n"; printf "\ny: [$y]\n";
---------------------------------------------------------- As you are using (") double quotes the concatenation operator is not required , so we can ignore that.


Comment on Re: Order of printf statements vs order of actual lines printed out
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-09-17 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (99 votes), past polls