Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Interpret a string that contains strings

by bArriaM (Novice)
on Nov 21, 2015 at 23:00 UTC ( [id://1148324]=note: print w/replies, xml ) Need Help??


in reply to Re: Interpret a string that contains strings
in thread Interpret a string that contains strings

I shouldn't drink wine and code at the same time... Thank you Sir, it works like a charm after the changes, I wanted to make it too complicated!

sub printfToFile { my $file = shift; my $format = shift; my $arrayCount = @_; my $formatString; for (my $r = 1;$r <= $arrayCount; $r++) { $formatString = $formatString."$format "; } $formatString = trim( $formatString ); $formatString = $formatString."\n"; open IO, ">>$file" or die "Cannot open $file for output: $!\n+"; printf IO "$formatString", @_; close IO; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-29 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found