Thanks heaps guys (John and David)
8-)
David.
John W. Krahn wrote:
David Buddrige wrote:
Hi all,
I have a group of C++ source files where I have the following text on a
single Lines:
class MyReallyLongClassNameThatIsTooLongToFitInEightyCharacters : public
SomeClassTemplate
What I want to
I am not
sure how to split it into two lines (at the colon). Can anyone suggest
how I'd do that?
thanks heaps guys
David Buddrige. 8-)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ackets *should* be benign if not actually
needed. It should just mean any of the characters therein - or is it
seeing the . as a . rather than as a meta-character meaning any-character?
cheers
David Buddrige.
David Buddrige wrote:
Hi all,
I have a bunch of C++ source files that contain the
can tell perl that I want it to remove everything
from PCN: onwards to the end of the line?
thanks heaps guys
David Buddrige.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
I have figured it out! Script is below:
while(<>)
{
$_ =~ s/\f//g;
print;
}
thanks guys
David
David Buddrige wrote:
Hi all,
I have a bunch of C++ source files that have had form-feed characters
inserted in them every so often. In vi and emacs these characters
app
character in a
text file.
and
b) how to specify it in a search/replace?
thanks heaps
David Buddrige
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
the string, which I will store and then output in a nicely
formatted way.
thanks heaps
David.
David Buddrige wrote:
To do this, I have written the following function:
# This subroutine takes as input a single array reference, and
# rearranges any doc++ commands that are split over multiple
Hi all,
I am writing a program which will re-arrange a doc++ comment.
A doc++ comment is a C/C++ comment that starts with an extra "*". An
example of a doc++ comment is this:
/**
@doc Some general info about a function.
@precondition Any precondition that the function has
@postcondition
Hi all,
I have figured out the solution to the problem below is to use an array
of references to the various objects that I want to pass into the
subroutine.
thanks guys
David.
David Buddrige wrote:
Hi all,
I want to write a subroutine that takes an array and a hash as input
parameters
ather than getting a very long string, I get
something like:
ARRAY(0x8118e34)
printed out instead. Can anyone see why this is happening?
thanks heaps
David Buddrige.
sub format_docpp_comment
{
my @doc_comment;
my $comment_line;
my $single_comment_line;
@doc_comment = $_[0]
Hi all,
I want to write a subroutine that takes an array and a hash as input
parameters and then does some work on them. I can't seem to determine
how to do this however; it seems that with a subroutine, all you can
pass is a single array ( which appears as @_ ) to the subroutine.
The program
Thanks Paul, Beau,
That's got it. 8-) I knew it had to be something simple. 8-)
David.
Paul Johnson wrote:
David Buddrige said:
#!/usr/bin/perl
use strict;
use warnings;
@c_files;
@h_files;
foreach $arg ( @ARGV )
{
if ( $arg =~ /\w\.[Cc]/ )
{
push @c_files
Hi all,
I have written a program (listed at the end of this email) which is
designed to examine the arguments to the program and sort them into .C
files and .H files and then print them out together. It (attempts) to
do this by adding each .C file or .H file into an array @c_files or
@h_files
[a-z0-9]+ will match a sequence of characters containing one or more of
the set [a-z0-9].
If you want to match a line of characters that contains NOTHING BUT
[a-z0-9] then you could use:
^[a-z0-9]+$
If you want to match a sequence of characters that must start with [a-z]
and contain any number
beaut! thanks.
David. 8-)
Jean Padilla wrote:
Hi,
the second line is simply declaring two variables:
1 - the scalar $itemtype
2 - the hash %symbol
just another way to say
my $itemtype;
my %symbol;
no magic here, *NOT* a list or data structure.
A+
David Buddrige a écrit :
Hi all,
I am
st be a reference to a hash, since you cannot actually
store a hash into a data structure such as a list or an array without
using refernces...
Could anyone see what possible value could be had in creating the list:
my ($itemtype, %symbol);
Is this assigned to some default name?
thanks heaps
your help.
regards
David Buddrige.
Nigel Wetters wrote:
On Wed, 2002-10-30 at 07:49, David Buddrige wrote:
$TO_sub="$;#";
$TC_sub="$;@";
obscure.
$; is by default "\034"; thus $TO_sub is "\034#" and $TO_sub is "\034@".
I guess your colle
subscript seperator for multi-dimentional arrays, however in this
context it does not appear to make any sense. Could someone explain
what the above 2 lines of code mean?
thanks heaps
David Buddrige.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
18 matches
Mail list logo