in reply to new to CGI::Application

Hi dhoss,
Looking at the source of that module, it appears that the directory you give it needs to contain sub-directories, that contain the pictures. (It does a loop through the contents of the directory, picking out dirs, and checking for pictures in them)

You might want to report a documentation bug.

Oh, and including a link to your scratchpad in a SoPW isnt clever, as the node will stay forever, but your scratchpad will quite likely change..

C.

Replies are listed 'Best First'.
Re^2: new to CGI::Application
by sasikumar (Monk) on Dec 06, 2004 at 10:10 UTC
    hi cool, Its the common problem between the windows user and the *nix based user. Here is the modified script.Try this
    #!perl -w use strict; use CGI::Application::PhotoGallery; my $webapp = CGI::Application::PhotoGallery->new( PARAMS => { photos_dir => 'C:\\BigApache\\apache\\htdocs\\puppy_love\\ +photos', title => 'Austin Shelties', script_name => $0 } ); $webapp->run();
    The windows based file system should contain the slashes in reverse then to the *nix based os Sasi

    2004-12-06 Janitored by Arunbear - added code tags, as per Monastery guidelines

      Better would be to recommend usage of File::Spec so that the author doesn't have to worry about directory slashes. OS-dependency is sooo 1998!

      Being right, does not endow the right to be rude; politeness costs nothing.
      Being unknowing, is not the same as being stupid.
      Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
      Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.