Bradey Baily identified the heart of the problem you're having

Here are a couple of additional tips:

Firstly, go to your email client settings (Outlook if I'm not
mistaken) and change it so that it doesn't break long lines of text.
This will make it easier for people to to debug.  Additionally,
whenever possible, try to whittle away code that isn't involved in the
error before sending the code to the list for review.  I recommend
copying your original file and deleting a few lines at a time here and
there until there is only a small amount of code that produces the
same error message that you was giving you the problem (on a different
line number of course).  This may even lead you to finding the problem
yourself.

Making these changes will get your problem in front of a lot more eyes.

More below...

On Tue, Apr 29, 2008 at 9:03 AM, Greg Evans <[EMAIL PROTECTED]> wrote:
> Hello Alstair,
>
>  Tried what you suggested 2 different attempts and they resulted in the
>  following errors. Not really sure what I am doing wrong here, or if it is
>  not me at all?
>
>  Attempt #1
>  --Code--
>  %###########################################################################
>  ######
>  %#
>  #
>  %#      Perl Script to Connect to Incognito and retrieve modem information
>  #
>  %#
>  #
>  %###########################################################################
>  ######

For this documentation section HTML::Mason offers a <%doc> tag.  So
you can do this instead:
<%doc>

######################################################

Perl Script to connect to Incognito and retrieve modem information

######################################################

</%doc>

Everything within a doc section is treated as if it were already commented out.
This way you don't have to escape each line twice using "%" and "#"

>  # remove ":" from MAC address so that we can use it in the Incognito CLI.
>  There is probably a faster way to do this, but
>  # this works.
>  while($macAddr =~ m/:/){
>         $macAddr =~ s/://;
>         $macAddr =~ tr/[A-Z]/[a-z]/;
>  }

Definitely a faster way:

$macAddr =~ s/://g; # g is for globally: replaces all occurrences
$macAddr = lc($macAddr); # lowercase in one fell swoop

-- Ben

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to