Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
January 10, 2010, 6:04 pm
rate this thread
- Xho Jingleheimerschmidt
January 10, 2010, 6:12 pm
- Wanna-Be Sys Admin
January 11, 2010, 12:47 am
Re: my $short = (split /\//, $Server->File())[$#]
Sure you can do it, but not with $Server->File(), since it's not an
array. Of course, you can build an array by using / as a delimiter and
then split, but that would be doing double the work when you can
determine the last element by split in the first place, or by using a
Not really a wanna-be, but I don't know everything.
- » FAQ 8.30 How can I convert my shell script to perl?
- — Next thread in » PERL Discussions
- » FAQ 5.18 How can I open a file with a leading ">" or trailing blanks?
- — Previous thread in » PERL Discussions