>>>>> "AC" == Aimee Cardenas <aim...@sfbrgenetics.org> writes:

  AC> Awesome!  Thanks, David!  :-D

you can do it is true. but you should have been able to figure it out on
your own with simple logic or checking the docs. arguments to perl's
functions are just normal values and expressions. they may be converted
to something else (coercion) but you still can pass anything to about
any function. the first arg to sprintf (and same for printf) is just a
perl scalar value which will be used as a string format. you can put a
function there that returns a string and it will work fine. you can
write any expression there you want. so an interpolate string with a
variable in it will work too. get this clear in your head and you will
improve your perl quickly. a similar issue comes up with here docs as
newbies see it used often with print. they assume the << op is actually
part of the print syntax when it really is just another way to create a
quoted string. it just happens to be used quite a bit with print but it
has no direct association with print.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to