D
Daniel Carrera
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all,
I'm getting an erorr that I don't understand.
# My code
while gets.
break if (/\<\!-{19} ending left_colum -{11}\>/)
end
# Output:
warning: regex literal in condition
What is a "regex literal"? How is that different from any other regex?
I just want to read a text file and skip all the lines until I arrive at
the one matching the expression above.
Can anyone see what I'm doing wrong? I really can't.
Thanks.
- --
Daniel Carrera | OpenPGP fingerprint:
Mathematics Dept. | 6643 8C8B 3522 66CB D16C D779 2FDD 7DAC 9AF7 7A88
UMD, College Park | http://www.math.umd.edu/~dcarrera/pgp.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (SunOS)
iD8DBQE/HwDgnxE8DWHf+OcRAk2WAKDutetKGyuxPb13sA6l5cGE95Us/wCfUAAa
ZaoQRjmY5pDZ6RGFegmh2YQ=
=WHdb
-----END PGP SIGNATURE-----
Hash: SHA1
Hello all,
I'm getting an erorr that I don't understand.
# My code
while gets.
break if (/\<\!-{19} ending left_colum -{11}\>/)
end
# Output:
warning: regex literal in condition
What is a "regex literal"? How is that different from any other regex?
I just want to read a text file and skip all the lines until I arrive at
the one matching the expression above.
Can anyone see what I'm doing wrong? I really can't.
Thanks.
- --
Daniel Carrera | OpenPGP fingerprint:
Mathematics Dept. | 6643 8C8B 3522 66CB D16C D779 2FDD 7DAC 9AF7 7A88
UMD, College Park | http://www.math.umd.edu/~dcarrera/pgp.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (SunOS)
iD8DBQE/HwDgnxE8DWHf+OcRAk2WAKDutetKGyuxPb13sA6l5cGE95Us/wCfUAAa
ZaoQRjmY5pDZ6RGFegmh2YQ=
=WHdb
-----END PGP SIGNATURE-----