User Profile

Collapse

Profile Sidebar

Collapse
Skrynesaver
Skrynesaver
Last Activity: Oct 22 '09, 08:26 AM
Joined: Apr 4 '08
Location: Ireland
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Skrynesaver
    replied to Trouble with while loop
    in Perl
    [QUOTE=TrevS17;3 492233]hello people,
    No need for the $int flag
    Code:
    sub addVoter{
            open(AV,">>voters.txt");
            my $addSsn="";
            print "What is your name (first and last)? ";
            chomp($addName=<STDIN>);
            print AV "$addName:";
            my $checked=0;
            while (($addSsn !~ /^\d{3}-\d\{2}-\d{4}$/){
    ...
    See more | Go to post

    Leave a comment:


  • Hi Sevla,

    Your code formatting could do with improvement ;) Below is one way to tackle this
    Code:
    #! /usr/bin/perl
    
    open (my $FILE, "<", "test_file");
    my @contents=<$FILE>;
    my $line_count=scalar(@contents);
    print "This file has $line_count lines.\n";
    print "which line do you want to check [Enter a number between 1 and $line_count]";
    chomp(my
    ...
    See more | Go to post

    Leave a comment:


  • Hi all,

    Sussed it, ahh that wonderful feeling of outwitting my incompetence ;)

    By setting the link href to the action of the form IE co-operates, (this was set dynamically in the actual code, (not quite that incompetent).



    Code:
    function submitPlaylistRequest{
       var pListForm=documet.getElementByID('playlistForm');
       pListForm.urls.value=urls;
       pListForm.submit();
    ...
    See more | Go to post

    Leave a comment:


  • Skrynesaver
    started a topic Overcomming IEs 2083 byte URL restriction

    Overcomming IEs 2083 byte URL restriction

    Hi all,

    I'm trying to generate an M3U playlist file (series of line separated music resources) from a generated link, this works fine until the number of "characters " in the URL exceeds 2083 at which point IE refuses to play.

    I thought I could code around this by adding a form which javascript fills and submits when the user asks for the playlist.

    Code:
    function submitPlaylistRequest{
    ...
    See more | Go to post
No activity results to display
Show More
Working...