Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    my $gd=$graph->plot(\@bar_data)->$format() or die $graph->error;
    print '<img src=http://foobar.com/foobar.pl?image=$gd&format=$format>'
    +;#sends the parameters to the second script
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
    print header("image/$format");
    binmode STDOUT;
    print $image;