
Nov 27, 2001, 2:50 AM
Veteran / Moderator (4108 posts)
Nov 27, 2001, 2:50 AM
Post #2 of 3
Views: 2740
I'm not sure what exactly you're asking or what you are trying to achieve using the Perl read-only variable $`.
Can you give us an example of what you're trying to do? It could help us to answer your question more specificaly.
- wil
Can you give us an example of what you're trying to do? It could help us to answer your question more specificaly.
- wil
Nov 27, 2001, 9:52 AM
Veteran (1936 posts)
Nov 27, 2001, 9:52 AM
Post #3 of 3
Views: 2726
use the constant pragma, like this:
print foo;[/b]
constants may be hashes, arrays, subroutines, etc.....
http://www.perldoc.com/....1/lib/constant.html
--Philip
Links 2.0 moderator
Code:
use constant foo => "bar"; print foo;[/b]
constants may be hashes, arrays, subroutines, etc.....
http://www.perldoc.com/....1/lib/constant.html
--Philip
Links 2.0 moderator