[bcn-pm] Salida de format asignarla a una variable

Alex Muntada alexm at ac.upc.es
Tue Aug 10 16:54:41 CDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* Vicenç Miralda Bover:  [2004-08-10/22:53:02 +0200]

> hay alguna manera de asignar la salida de format a una variable

man perlvar
...

       $ACCUMULATOR
       $^A     The current value of the write() accumulator for
               format() lines.  A format contains formline()
               calls that put their result into "$^A".  After
               calling its format, write() prints out the con­
               tents of "$^A" and empties.  So you never really
               see the contents of "$^A" unless you call form­
               line() yourself and then look at it.  See the
               perlform manpage and the formline() entry in the
               perlfunc manpage.

Trobaràs un munt d'exemples de manipulació dels FORMAT a la
pàgina de manual corresponent:

  man perlform

use Perl;

- --
Alex Muntada <alexm at ac.upc.es>
http://alexm.org/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFBGUQcLdxCGS3zaBERAv9/AKDQcMnO3pRtteztHiDJBUEuuZk7KwCgo90W
aK5x6Xa9sWxkNcJW/D8rn50=
=NaK/
-----END PGP SIGNATURE-----


More information about the Barcelona-pm mailing list