Help for this page

Select Code to Download


  1. or download this
        my $message = sprintf('%d %s been loaded', $v, $v == 1 ? 'volume h
    +as' : 'volumes have')
    
  2. or download this
    C:\>perl -E "say sprintf('%d %s been loaded', $_, $_ == 1 ? 'volume ha
    +s' : 'volumes have') for 0 .. 9"
    0 volumes have been loaded
    ...
    9 volumes have been loaded
    
    C:\>
    
  3. or download this
        my $message = sprintf 'Volumes loaded: %d', $v;