|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: perl arg counting
From: Antonomasia (ant
notatla.demon.co.uk)Date: Thu Jun 29 2000 - 13:51:48 CDT
- Next message: Jonathan Leto: "Re: perl arg counting"
- Previous message: lamont
icopyright.com: "Re: evil statd function"
- Next in thread: Jonathan Leto: "Re: perl arg counting"
- Reply: Jonathan Leto: "Re: perl arg counting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
#!/usr/bin/perl -w
require 5.004;
use strict;
printf "%d %d %d\n", 99, 88, 77, print "an arg too far\n";
I have not managed to get error indications in Perl for
mismatched argument numbers; not even the above case which
looks to me a no-brainer.
Adding further args seems to show processing from R to L
regardless of the content of the format string.
Maybe we'll actually have to do some work and count the stuff.
-- ############################################################## # Antonomasia antnotatla.demon.co.uk # # See http://www.notatla.demon.co.uk/ # ##############################################################
- Next message: Jonathan Leto: "Re: perl arg counting"
- Previous message: lamont
icopyright.com: "Re: evil statd function"
- Next in thread: Jonathan Leto: "Re: perl arg counting"
- Reply: Jonathan Leto: "Re: perl arg counting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]