in reply to Re: Mysql and Perl Modulein thread Mysql and Perl Module
Hello, I don't understand the meaning of %s ? Is this a hash ?
No, its a string, a format string
If you use perl -MO=B::Deparse,-p myfile.pl to see how perl parses my code, you can see how that format string is the first argument to the sprintf function
I'm getting my information from an array. My problem is I don't know how many columns I'm getting.
You don't need to know, the array/code I posted knows that information, and does the right thing -- I linked a runnable example ( Re: Open multiple file handles? ) a few minutes ago in Re^3: Mysql and Perl Module
$a = "world";
sprintf "hello %s", $a; # results in "hello world"
.desrever si txet eritne ehT
.backwards are (letters the not but) words the Only
ehT sdrow era ni redro, tub eht srettel era eht rehto yaw.
Who ndees baacdkrws wehn you have Tceilmopgyya?
?wdors reeersvd up meixd about How
.tusnnmihep rof nuttolg a m'I
Results (441 votes). Check out past polls.