It's worth mentioning that there are a few different kinds of nothings.
The ones I know that apply to ordinary (scalar) variables are
the number zero, the empty string, with or without a null character
to terminate it, boolean false, and undef, the value of variables that
don't exist yet. A lot
It looks like there is a single space between each data value; if
so, you can split on whitespace rather than all the nasty pattern
matching; did this not work for you?
On Thu, 7 Jun 2001, Brent Buckalew wrote:
> Hello all,
>
> I tried putting the following into the program but it doesn't rea
You need an interpreter; you can use any text editor you want.
There are some IDEs (if you don't know what that is, think of
it as a word processor that knows Perl), most notably ActiveState's
Komodo (it's in a Beta version now) -- on my computer (1GHz Athlon)
it's slow as molasses. I use Notepa
No, but seriously. Put the # before the !
("she-bang" is, if nothing else, a good mnemonic)
On Tue, 5 Jun 2001, M.W. Koskamp wrote:
>
> - Original Message -
> From: Bob Mangold <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 05, 2001 9:28 PM
> Subject: Re: Fwd: 'u
Nope. It breaks down like this:
open (FILEHANDLE, "filename") opens for reading--can't be changed
open (FILEHANDLE, "filename") write to filename, writing over current
contents
open (FILEHANDLE, ">>filename") write to filename, appending to current
contents
Your changes will be sav
How about something like this?
# Get rid of all the lines up till the Nitrogen ones start:
do {
$discard_line = ;
} until ($line =~ /Log 10 Mean Ionisation/)
# Then, process lines until no more Nitrogens:
while () #Current line becomes the variable $_
{
break unless (/Nitrogen/); #if n
In the first line, $remtag == "1"
should either be a string match
$remtag eq "1"
or a numerical one
$remtag == 1
I don't know if that's your problem, but I'm sure it's
not doing what you want it to . . . .
Good luck!
On Mon, 4 Jun 2001 [EMAIL PROTECTED] wrote:
> } elsif ( $remtag == "1" ) {