Question about char() arrays in parameters

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Raterus (raterus_at_localhost)
Date: 03/10/04


Date: Wed, 10 Mar 2004 17:07:19 -0500

Hi, what is an easy way to send char() arrays as parameters, using option
strict.

For example, I'm using the String's TrimEnd function, which takes in a char
array as a parameter. I'm love to do something like this

myString = myString.TrimEnd(".")

but I like to keep "Option Strict" set, so I'll get a nice warning. Is
there anyway to denote this as a character array, without going through the
mess of having to create a character array for just one character?

Thanks!
--Michael



Relevant Pages

  • Re: matching password problem
    ... and turn on warnings. ... You don't need to store the usernames and passwords in arrays in your code, because you only need to look at ONE username and ONE password at a time. ... And if you DID want to store them, you should use a hash, not an array. ... use strict; use warnings; ...
    (perl.beginners)
  • Re: Array assignment via struct
    ... >>>All of S is an array of char. ... >>>alignment requirements, their members do. ... >> contained character array would need only 'char' ...
    (comp.lang.c)
  • Re: delimited data into nested array
    ... > Perl as a two dimensional nested array. ... warnings is a more modern replacement for -w: ... strict helps catch common coding errors. ...
    (comp.lang.perl.misc)
  • Re: Module questions (perhaps a module creation mini-tutorial)
    ... > use warnings; ... > use strict; ... You shouldn't be using this array. ... > package I am calling. ...
    (perl.beginners)
  • Re: How do I convert an array of x-y coordiates in to a image?
    ... You just need to get the dimensions of your array ... use warnings; ... use strict; ... # a random color image using GD IO ...
    (comp.lang.perl.misc)