Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: POD-Browser 0.01 released.

by PodMaster (Abbot)
on May 02, 2003 at 10:18 UTC ( #254951=note: print w/ replies, xml ) Need Help??


in reply to POD-Browser 0.01 released.

Please use Pod::Find to find pod (there is no such thing as "Null POD"). Also, you should throw up a splash screen whilst searching for pod on startup, or simply don't search for it at all, just find perltoc and display it (or provide an option to not search on startup).

Also, this is weird

sub INC_AddPath { my( $this ) = shift ; my $dialog = Wx::DirDialog->new($this , "$TITLE - \@INC -> Add PATH" + , $LASTDIR ) ; my $dir ; if( $dialog->ShowModal == wxID_CANCEL ) { $dir = undef ;} else { $dir = $dialog->GetPath ;} $dir =~ s/[\\\/]+/\//gs ; push(@INC , $dir) ; Wx::MessageBox("Path Added:\n$dir", "\@INC -> New PATH", wxOK | wxIC +ON_INFORMATION, $this ); }
Kindly rewrite it like
sub INC_AddPath { my( $this ) = shift ; my $dialog = Wx::DirDialog->new($this , "$TITLE - \@INC -> Add PATH" + , $LASTDIR ) ; return if $dialog->ShowModal == wxID_CANCEL; my $dir = $dialog->GetPath ; $dir =~ s/[\\\/]+/\//gs ; # this is weird, but whatever push(@INC , $dir) ; Wx::MessageBox("Path Added:\n$dir", "\@INC -> New PATH", wxOK | wxI +CON_INFORMATION, $this ); }


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
** The Third rule of perl club is a statement of fact: pod is sexy.


Comment on Re: POD-Browser 0.01 released.
Select or Download Code
Re: Re: POD-Browser 0.01 released.
by gmpassos (Priest) on May 02, 2003 at 10:24 UTC
    Will take a look in Pod::Find...

    I made a mistake in the INC_AddPath(). Forgot to check if the $dir isn't null before push it.

    Thanks again PodMaster. ;-P

    Graciliano M. P.
    "The creativity is the expression of the liberty".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://254951]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2014-09-20 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls