Re: scalar subscripting

2004-07-22 Thread Hans Ginzel
Hello, I wish to be consistent with shall, so `.' is literal dot in double strings. I prefer "$file.ext" or "${file}.ext". For method calls ``$()'' could be used: "$($foo.bar)". Perhaps, what does "${foo.bar}" mean? Best regards

regexp abbreviations matching

2004-07-13 Thread Hans Ginzel
Hello, I am missing, in Perl5, some shortcut for matching not whole word, e.g.: /^--v(?:e(?:r(?:s(?:i(?:on?)?)?)?)?)?$/ Would there be something in Perl6? For Perl5 I suggest somenthing like this /--v(?-ersion)$/ Best regards

Re: scalar subscripting

2004-07-13 Thread Hans Ginzel
On Fri, Jul 09, 2004 at 05:02:48PM +0100, Jonathan Worthington wrote: > > >Are there plans in Perl 6 for string modifiers? > > Not exactly. But method calls can be interpolated into strings, so most > > > As they are in bash eg.: > > > ${var%glob_or_regexp} > > > ${var%%glob_or_regexp} > > > >

Re: scalar subscripting

2004-07-08 Thread Hans Ginzel
ey are in bash eg.: ${var%glob_or_regexp} ${var%%glob_or_regexp} ${var#glob_or_regexp} ${var##glob_or_regexp} ${var/pattern/string} ${var:[+-=]word} Best regards Hans Ginzel