Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2017-10-20 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (259 votes). Check out past polls.

    Notices?