On 1:28 AM 2/26/01 [EMAIL PROTECTED] wrote:
> with specific reference to BBedit I don't think it's good that it
> doesn't check if MacPerl is running before trying to pass it a
> script.
I'm not sure I understand. This was done for the convenience of our
users. If MacPerl isn't running why sho
Jim Correia <[EMAIL PROTECTED]>wrote:
>BBEdit knows where MacPerl is, and launches it for you.
Umm I metioned before that I didn't want to get involved with an editor
war, and I think this is wandering OT a bit. Sufice to say I tried BBedit
over a period of weeks and it didn't behave as you descri
On 11:38 AM 2/26/01 [EMAIL PROTECTED] wrote:
> Jim Correia <[EMAIL PROTECTED]>wrote:
> >BBEdit knows where MacPerl is, and launches it for you.
> Umm I metioned before that I didn't want to get involved with an
> editor war, and I think this is wandering OT a bit. Sufice to say I
> tried BBedit o
At 1:38 AM +0900 2/27/01, [EMAIL PROTECTED] wrote:
>?
>Jim Correia <[EMAIL PROTECTED]>wrote:
>>BBEdit knows where MacPerl is, and launches it for you.
>Umm I metioned before that I didn't want to get involved with an editor
>war, and I think this is wandering OT a bit. Sufice to say I tried BBedit
The code
#!perl -w
$x = 0.061234567;
$string = sprintf "%.2f\%", $x * 100;
works fine ($string = 6.12%), but it produces an
Invalid conversion in sprintf: end of string
error message. Removing the -w flag eliminates the error message, but
I don't understand why there is an erro
If I have understood things correctly I can't use -w or -W to determine if a
file is locked or not. So I tried figuring out how to get info using the
Mac::Files module and the FSpGetCatInfo function to get the information.
According to the module info:
U16 fdFlags lags ex. hasbundle, invisible,
>The code
>
>#!perl -w
>$x = 0.061234567;
>$string = sprintf "%.2f\%", $x * 100;
>
>works fine ($string = 6.12%), but it produces an
>
> Invalid conversion in sprintf: end of string
>
>error message. Removing the -w flag eliminates the error message,
>but I don't understand why ther
Jim:
> > and it means that I can't run interactive apps very
>> easily if I want to use BBEdit as my editor (which I do want to do).
>
>Define what you mean by interactively please.
While the question wasn't directed to me, I have my own opinion of
the problem stated. Please forgive me if BBE
On 4:03 PM 2/26/01 tedd<[EMAIL PROTECTED]> wrote:
> But, if possible, I would like BBEdit to a better interactive
> integration into Perl. For example, while running Perl, I would like
> to see BBEdit be already active and loaded with the current project.
> As such, then when I want to edit the c
On Mon, 26 Feb 2001 15:39:25 -0500, Vic Norton wrote:
>$string = sprintf "%.2f\%", $x * 100;
>
>works fine ($string = 6.12%), but it produces an
>
> Invalid conversion in sprintf: end of string
>
>error message.
Note that
"%.2f\%"
is exactly the same as
"%.2f%"
but you
At 15:04 -0600 2001.02.25, Ken Williams wrote:
>Mostly I just mean using STDIN and STDOUT to ask questions and give
>answers in the console window. I haven't used Mac-specific stuff very
>much (dialogs, file finding dialogs, etc.) so I can't speak to how
>smoothly that works when editing external
At 23:31 +0100 2001.02.25, Detlef Lindenthal wrote:
>And another wish:
>MacPerl would gain a lot of elegance if we could have
>a command " p r i n t l ";
>so instead of writing
> print $i++, "\n" ;
>one could type
> printl $i++;
>this for sure looks better and saves lots of
>keyboard acrobatic
At 16:03 -0500 2001.02.26, tedd wrote:
>If I have this script in BBEdit, I can choose "Run in MacPerl", but I
>simply get a listing of the code -- which is not what I really want.
>What I really want is to see what the code produces in a browser. So,
>that option "To Run in Browser" would be nice.
At 23:01 +0100 2001.02.26, Bart Lateur wrote:
>but you're on the wrong track. The escape mechanism in (s)printf
>templates is to double the percent sign, in order to get just one.
Just by way of explanation: the reason why you can't use \ to escape a % in
a sprintf string is fairly obvious, if yo
Hi all,
I frequently use 'my' with for loops in the following way:
for my $name( qw{ David Steven Eric } ) {
... # do something with $name
}
Was 'my' not meant to be used like this?
The reason I ask is that when used with MacPerl, everything behaves as
expected. However, whenever I try to
>Hi all,
>
>I frequently use 'my' with for loops in the following way:
>
>for my $name( qw{ David Steven Eric } ) {
> ... # do something with $name
>}
>
>Was 'my' not meant to be used like this?
This is fairly recent. I'm a little surprised that 5.004 does it,
but I don't remember exactly w
Sorry about that. I should have looked up sprintf. It's right there
in Programming Perl. Formats for sprintf: Field: %%; Meaning: A
percent sign.
Thanks for the help.
Vic
At 3:39 PM -0500 2/26/01, Vic Norton wrote:
>$string = sprintf "%.2f\%", $x * 100;
>... produces an
>error message.
[EMAIL PROTECTED] (Detlef Lindenthal) wrote:
>Not only the MacPerl Editor should be improved, but
>S h u c k as well.
>(Shuck is really great in its ease of use!)
I have to chime in here with some positive feedback (for Matthias, I
guess) - Shuck is such a great POD viewer, even though it d
18 matches
Mail list logo