Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 lurking in the Monastery: (9)
As of 2015-07-31 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls