Syntactic Confectionery Delight | |
PerlMonks |
Changing -> to work within a stringby shushu (Scribe) |
on Mar 19, 2003 at 11:22 UTC ( [id://244308]=perlquestion: print w/replies, xml ) | Need Help?? |
shushu has asked for the wisdom of the Perl Monks concerning the following question:
Hallo monks! In the environment I develop I give the users an option to write with Perl their own scenarios, using several pre-defined objects. Every such object is based on AUTOLOAD subroutine that dispatch the relevant method to a certain use. For example, a machine object has a working directory attribute. A user that want to use this attribute will write: To get the value of the working directory. The problem is - the users are beginners in Perl development, and this is not their main task. When using several attributes in one line, they have to concatenate, what cause them troubles. For example, getting a directory under the work directory that include a version number can look like this: While the users want to write: Which will give them something like "HASH=(34234)->work_dir/subdir/HASH=(34234)->software_version/". Do you guys have any idea how Perl can be changed to do what my users want ? TIA, shushu
Back to
Seekers of Perl Wisdom
|
|